Skip to content
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

Bom types: general usability improvements #405

Open
Andy-Grigg opened this issue Jan 16, 2024 · 0 comments
Open

Bom types: general usability improvements #405

Andy-Grigg opened this issue Jan 16, 2024 · 0 comments

Comments

@Andy-Grigg
Copy link
Collaborator

Andy-Grigg commented Jan 16, 2024

Originally raised by @ludovicsteinbach

  • Some elements are defined as choice in the schema, meaning that one of the two (or more) element must be provided, but not both. This isn't apparent when using the Python types. When both are provided, the user gets an xmlschema error, which is quite detailed and helpful, but conceptually not at the right level, since the user is not manipulating XML.

  • Python types do not reflect which elements are mandatory, as in "at least one item in the list". It's therefore possible to instantiate an almost empty Python BoM, and serialize it successfully, but deserializing it will fail, as all empty properties have been ignored during serialization.

Decide whether we want to address these issues and how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant