Skip to content

Update REST-JSON protocol test implicit request body case#476

Merged
mtdowling merged 1 commit intosmithy-lang:masterfrom
jasdel:fixup/RestJSONProtoTest
Jun 24, 2020
Merged

Update REST-JSON protocol test implicit request body case#476
mtdowling merged 1 commit intosmithy-lang:masterfrom
jasdel:fixup/RestJSONProtoTest

Conversation

@jasdel
Copy link
Copy Markdown
Contributor

@jasdel jasdel commented Jun 24, 2020

Updates the restJson1 protocol test to not expect {} as the request body. Instead the test expects no/empty request body. This matches the AWS SDK's expectation of REST-JSON with no input parameters when no document or payload binding are modeled on the input shape.

https://github.com/aws/aws-sdk-go-v2/blob/master/models/protocol_tests/input/rest-json.json#L724-L737

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

Updates the restJson1 protocol test to not expect `{}` as the request
body. Instead the test expects no/empty request body. This matches the AWS SDK's
expectation of REST-JSON with no input parameters when no document or
payload binding are modeled on the input shape.

https://github.com/aws/aws-sdk-go-v2/blob/master/models/protocol_tests/input/rest-json.json#L3-L19
@mtdowling mtdowling merged commit b10ed21 into smithy-lang:master Jun 24, 2020
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