Skip to content

Remove falsely set empty bodies for restJson1#765

Merged
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:prune-false-emtpy-bodies
Apr 8, 2021
Merged

Remove falsely set empty bodies for restJson1#765
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:prune-false-emtpy-bodies

Conversation

@JordonPhillips
Copy link
Copy Markdown
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