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

substitutionGroup not detected during model generation #648

Closed
THM-MA opened this issue Jan 26, 2022 · 2 comments · Fixed by #650
Closed

substitutionGroup not detected during model generation #648

THM-MA opened this issue Jan 26, 2022 · 2 comments · Fixed by #650
Labels
bug Something isn't working

Comments

@THM-MA
Copy link

THM-MA commented Jan 26, 2022

I try to use XSDATA to parse Business Process Model and Notation (BPMN) 2.0.2 diagrams.
https://www.omg.org/spec/BPMN/2.0.2/

The XS schema contains a substitutionGroup Element that is not detected during model generation. When parsing a valid BPMN XML file using the generated models an "Unknown property" occurs.

A working example with full error description and details (schema, generated model, parser code, name of substitutionGroup) can be found here:

https://github.com/THM-MA/xsdata-substGrp

I've already tried different structure styles (filenames, namespaces, clusters, usw.) to avoid namespace conflicts without success.

The XSDATA documentation 21.8 (2021-08-03) mentions „Updated fields derived from xs:substitutionGroups to optional”. May this be the problem?

Any help is highly appreciated!

Thanks
Thomas

@tefra tefra added the bug Something isn't working label Jan 27, 2022
@tefra
Copy link
Owner

tefra commented Jan 27, 2022

@THM-MA amazing job reporting this issue, it really helps with troubleshooting.

@tefra
Copy link
Owner

tefra commented Jan 27, 2022

Amazing case @THM-MA I have no such examples in either my samples or the w3c test suite!

The fix is on master and will be included in the next release, thanks for the detailed report 🤟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants