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

Added the ability to set xml2js options. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

timhuff
Copy link

@timhuff timhuff commented Apr 17, 2015

Specifically, I wanted the ability to set {explicitArray: false} in the xml2js parameters. This eliminates the need for the constant [0] and generally makes the objects returned from amazon much nicer looking. I would have suggested making it default if it wouldn't break backwards compatibility.

Specifically, I wanted the ability to set `{explicitArray: false}` in the xml2js parameters. This eliminates the need for the constant `[0]` and generally makes the objects returned from amazon much nicer looking. I would have suggested making it default if it wouldn't break backwards compatibility.
@timhuff
Copy link
Author

timhuff commented Apr 17, 2015

There is the matter of arrays showing up as objects (in the event that they only have 1 element) but I'd rather run anything expected to be an array through result.SomeArray = [].concat(result.SomeArray) than have a million [0] everywhere.

neshte added a commit to jokenson/mws-sdk that referenced this pull request Jan 10, 2018
Addition of params parameter to request.
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 this pull request may close these issues.

1 participant