Replies: 1 comment 1 reply
-
Basically in dataclasses field with default values have to be declared before any other field, but xsdata relies on the field ordering for the serialization. For that reason the generator marks all fields as That part of the metadata currently is completely imformative for the developer. In Python 3.10 dataclasses introduced a new directive |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Sounds like I'm missing something.
I used xsdata cli to generate some python code from an existing xsd.
Everything seems OK and required data seem to be generated accordingly to xsd definition.
When parsing a conform file (xmllint gives no validation error), no error. The object is created with as imagined
When parsing an invalid file (xmllint raises a validation error), there is no error either. The object is created with missing required informations.
I guess I'm missing something but what ?
Regards,
Laurent
Beta Was this translation helpful? Give feedback.
All reactions