-
Notifications
You must be signed in to change notification settings - Fork 35
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
Order of xsd:element
and xsd:group
not respected
#53
Comments
FYI, when cloning master and running a |
Hello @SimonCockx Thanks for using the library and for raising the issue. I've checked the PR and I have my doubts about removing the method entirely, I'll need to review the history of the changes to refresh my memory, but if it passes the tests its most likely correct. Regarding the failing test, it's weird, I've ran the tests locally on Tuesday and everything was fine, but I had the same issue in the past cloning the repo. I'll try to check this issue either tomorrow or saturday. |
It seems that code was some remnants from ancient times 😄 Regarding the error with the test, I didn't quite understood the root cause, but it was related with some order issues while parsing the schemas. I adjusted the test and shouldn't happen again. I've approved your PR and released version 1.2.6 with the fix. Thanks for your contribution! |
Thank you for the quick response and reviewing! |
Describe the bug
When parsed, the order of
xsd:element
s andxsd:group
s in a sequence are not respected.E.g.,
When running
sequence.getElements()
on the parsed result, this returns a list of threeNamedConcreteElement
s, but in the wrong order:elem1
elem2
myGroup
I assume it is due to a bug in the following method defined in the
XsdMultipleElements
class:Here groups are added to the end of the list while resolving references.
Expected behavior
I would expect the order to be retained.
Library Version
1.2.4
The text was updated successfully, but these errors were encountered: