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

fix: supporte moving default lists for xml parser #3087

Merged
merged 3 commits into from
Feb 3, 2020

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Feb 3, 2020

Currently for all xml service, the parser inserts empty
array [] when a list member doesn't exist in xml string.
It was introduced long ago: eae5b32
This change introduce a new key in metadata called
xmlNoDefaultLists. If set to true, xml parser will not
try to insert default empty array if the member doesn't
exist. This key is only applicable to rest-xml, query
protocol services.

Checklist
  • npm run test passes
  • changelog is added, npm run add-change

@codecov-io
Copy link

codecov-io commented Feb 3, 2020

Codecov Report

Merging #3087 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3087      +/-   ##
==========================================
+ Coverage   97.05%   97.06%   +0.01%     
==========================================
  Files         330      330              
  Lines        9529     9534       +5     
  Branches     1750     1751       +1     
==========================================
+ Hits         9248     9254       +6     
+ Misses        281      280       -1
Impacted Files Coverage Δ
lib/xml/node_parser.js 93.4% <100%> (ø) ⬆️
lib/model/api.js 100% <100%> (ø) ⬆️
lib/service.js 98.14% <100%> (ø) ⬆️
lib/services/s3.js 98.19% <0%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dd8ab4...d8d55c3. Read the comment docs.

Currently for all xml service, the parser inserts empty
array [] when a list member doesn't exist in xml string.
It was introduced long ago: aws@eae5b32
This change introduce a new key in metadata called
xmlNoDefaultLists. If set to true, xml parser will not
try to insert default empty array if the member doesn't
exist. This key is only applicable to rest-xml, query
protocol services.
Copy link
Member

@trivikr trivikr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit

test/xml/parser.spec.js Outdated Show resolved Hide resolved
Co-Authored-By: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
@AllanZhengYP AllanZhengYP merged commit e2e60a0 into aws:master Feb 3, 2020
@AllanZhengYP
Copy link
Contributor Author

@trivikr Thanks a lot!

@lock
Copy link

lock bot commented Feb 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants