Skip to content

Commit

Permalink
Update REST-JSON protocol test implicit request body case
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jasdel authored and mtdowling committed Jun 24, 2020
1 parent 05d2bd1 commit b10ed21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ apply EmptyInputAndEmptyOutput @httpResponseTests([
documentation: "Empty output serializes no payload",
protocol: restJson1,
code: 200,
body: "{}",
body: "",
bodyMediaType: "application/json"
},
])
Expand Down

0 comments on commit b10ed21

Please sign in to comment.