-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix min/maxOccurs parsing and handling #1100
Conversation
6f44fbe
to
5a964f5
Compare
please fix the build |
Coveralls seems to be the issue for the failed builds : https://travis-ci.org/vpulim/node-soap/jobs/622742785#L1622-L1625 Not sure how I can fix that though. |
5a964f5
to
a2c0736
Compare
I ran the pipeline again by force pushing to the source branch. Travis CI is all good now. The previous error was probably just a fluke. |
please revert package-lock.json. also, i can't tell what was changed in the src file because the entire file was formatted. please revert space changes. |
a2c0736
to
1ac10d3
Compare
1ac10d3
to
23271a2
Compare
My bad, the PR should be reviewable now. |
thanks @kouak ! looks like coverage decreased. can you cover the other cases that you're adding? |
Yeah I had a look into that but I'm at lost here ... If I read the following image correctly, coveralls reports a decreased coverage in Also, it looks like all the added lines are covered if I read this report correctly. |
thanks @kouak ! |
@kouak could it be that we now have dead code elsewhere? |
@jsdevel: As far as I'm aware I'd say no. Could it be possible to prepare a new release including this fix ? That would greatly help our project. Thanks ! |
soon @kouak |
Consider this XSD :
We should expect node-soap to deserialize DummyList as an array regardless of the number of elements in the document.
Consider this response :
Before this PR, this would be transformed to :
After this PR :
We noticed this regression upgrading our app from node-soap 0.26.0 to 0.30.0. We pinpointed its introduction between 0.26 and 0.27, possibly during the typescript rewrite.
Also the former typings were wrong: AFAIK, sax parses minOccurs and maxOccurs attributes to strings making this code not perform correctly unless
maxOccurs
was set to "unbounded".