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

Remove falsely set empty bodies for restJson1 #765

Merged

Conversation

JordonPhillips
Copy link
Contributor

A number of tests for restJson1, notably tests that only set headers,
had the expected response body set to an empty string. These actually
would need to be empty json objects since restJson1 operations with
a defined output shape always need to send something. This just
removes the body entry in the tests since that behavior is covered
by more specific tests.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

A number of tests for restJson1, notably tests that only set headers,
had the expected response body set to an empty string. These actually
would need to be empty json objects since restJson1 operations with
a defined output shape always need to send something. This just
removes the body entry in the tests since that behavior is covered
by more specific tests.
@JordonPhillips JordonPhillips merged commit dd04869 into smithy-lang:main Apr 8, 2021
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.

2 participants