-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Restriction types and bases in xsd do not show in dataclass binding #743
Comments
An example of a byte restriction type with enumerations:
becomes:
having the metadata say something like:
would be very helpful. |
An example of missing type, that we would like to know:
becomes:
If the 'type' (here: 'objectId') could be in the metadata of 'ProductId' would also be appreciated. Although you already have a keyword 'type' there, so it would need to be another keyword, like maybe 'base_type'. Or alternatively, define 'ProductId' like this:
and the let 'objectId' have its own dataclass. |
Same as #738 |
I was under the impression that this was an issue related to inheritance too. |
At the moment, if I generate a binding of a compexType which is of type from a simpleType, which itself is a restriction on a base, then both the base and the name of the simpleType are not shown in the complexType binding.
This is probably not a critical issue, but it would be very good to have this information in the binding.
In our project, we need to be able to e.g. distinguish between two different complexTypes, which have the same restrictions but are used in different contexts. Thus for this we would need to know the name of the simpleType.
Not knowing the base type of a restriction can create problems as well, if for example the base type is byte, but the Enum class only returns a string. This would make it impossible to validate (and thus serialise) such an xml product.
If you could fix these issues, that would be great.
The text was updated successfully, but these errors were encountered: