-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xs:choice generates DataRecord[Any] #549
Comments
I'll copy this here for the record: https://twitter.com/eed3si9n/status/1339183897498804225
https://twitter.com/alexelcu/status/1339187282637631490
|
I think it's good to reexamine earlier design decisions. If I first try to remember my thinking back then, the theme that I kept coming back to is what types represent with regard to data binding some XML document like: <address>
<name>John</name>
</address> If we used case class: case class Address(name: String) then, the type If so, what does the case class address: Address this field is what ("groundShipping".type, Address)
| ("twoDayShipping".type, Address)
| ("oneDayShipping".type, Address)
| ("internalShipping".type, InternalAddress) |
Hello,
I have the following type described in the xsd:
This is clearly a union type. But the type generated is:
I would have expected to see something like:
Any way to prevent the use of that
DataRecord[Any]
?The text was updated successfully, but these errors were encountered: