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

feat(smithy-client): stricter parsing of request/response bodies #2713

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

adamthom-amzn
Copy link
Contributor

Description

Structured, non-payload-bound requests (to servers) and responses (to clients) should always be a JSON object in the REST/JSON protocol. This adds parsing utility functions so we can update the generator to assert that these requests/responses are JSON objects that are not null.

Testing

I have a local change to the generator, and I regenerated all clients and client and server protocol tests, and ran the protocol tests. They passed.

Additional context

I will have a PR to update the generator, and to update the generated code, after this.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adamthom-amzn adamthom-amzn requested review from JordonPhillips, gosar and a team August 25, 2021 23:59
@trivikr trivikr changed the title feat(smithy-client): support stricter parsing of request and response bodies feat(smithy-client): stricter parsing of request/response bodies Aug 27, 2021
@trivikr trivikr merged commit 0c74892 into aws:main Aug 27, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2021
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