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

Change Item in GetItemResponse to optional #896

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

kokobd
Copy link
Contributor

@kokobd kokobd commented Feb 17, 2023

The description at the top of this page says:

If there is no matching item, GetItem does not return any data and there will be no Item element in the response.

Item was marked as "required" by this commit. @endgame Do you know if there are some reasons behind that change?

Fixes #895

@endgame endgame added this to the 2.0 milestone Feb 17, 2023
@endgame
Copy link
Collaborator

endgame commented Feb 17, 2023

If AWS omits that field when there's no item found, then our marking it "required" is in error. Please run scripts/generate --commit dynamodb and push the commit that it generates.

@kokobd
Copy link
Contributor Author

kokobd commented Feb 18, 2023

Regenerated. Should we mention in #739 that we SHOULD generate?

Please don't regenerate services - we do that separately.

@endgame
Copy link
Collaborator

endgame commented Feb 18, 2023

I should probably revise that. For generator changes or treewide updates, we do a separate PR to keep the diff clean.

@endgame endgame merged commit 12e5411 into brendanhay:main Feb 18, 2023
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.

Item in GetItemResponse is not optional
2 participants