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

Enhance BoM Handler to support 2412 XSD #689

Open
Andy-Grigg opened this issue Jan 29, 2025 · 0 comments · May be fixed by #693
Open

Enhance BoM Handler to support 2412 XSD #689

Andy-Grigg opened this issue Jan 29, 2025 · 0 comments · May be fixed by #693

Comments

@Andy-Grigg
Copy link
Collaborator

Andy-Grigg commented Jan 29, 2025

The new 2412 XSD schema for bills of materials supports transport and location child nodes for additional node types. The builder needs to be enhanced to allow these new features.

We should consider as well if we want to continue to support the current 2301 format. A few thoughts on this:

  1. Completely duplicate all the BoM building code and leave the old version as-is
  2. Use different methods, or arguments in a method, to control which version we serialize to

Second option is better, but we'd need to handle how to serialize objects that cannot be represented in older BoM formats. Maybe raise an exception if these are encountered? Or delete them and warn?

Either way, we need to make sure this is an additive change, so scripts written against the previous version of the BoM handler continue to function. This probably means option two, using an argument to determine the BoM output. We should be able to default to the latest version, and offer an override if needed.

@Andy-Grigg Andy-Grigg linked a pull request Jan 31, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant