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: adding default value for list members for awsQueryCompatible for… #4542

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

RanVaknin
Copy link
Contributor

@RanVaknin RanVaknin commented Dec 3, 2023

  • npm run test passes
  • .d.ts file is updated
  • changelog is added, npm run add-change
  • run bundle exec rake docs:api and inspect doc/latest/index.html if documentation is changed
  • run npm run integration if integration test is changed
  • non-code related change (markdown/git settings etc)

@RanVaknin RanVaknin requested a review from a team as a code owner December 3, 2023 01:36
} else if (isAwsQueryCompatible && memberShape.defaultValue) {
if (memberShape.type === 'list') {
struct[name] = typeof memberShape.defaultValue === 'function' ? memberShape.defaultValue() : memberShape.defaultValue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

the reason we only apply this to lists and not maps is because the XML behavior was only applied to lists

@kuhe kuhe merged commit b2e395e into aws:master Dec 4, 2023
1 check passed
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.

4 participants