Skip to content

Commit 79e64ac

Browse files
authored
Add a test for explicit payload member and empty body responses (#2641)
* Add a test for explicit payload member and empty body responses * Remove body media-type, this won't be set by servers
1 parent e23bb52 commit 79e64ac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

smithy-aws-protocol-tests/model/restJson1/http-payload.smithy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,19 @@ apply HttpPayloadWithStructure @httpResponseTests([
281281
}
282282
])
283283

284+
apply HttpPayloadWithStructure @httpResponseTests([
285+
{
286+
id: "RestJsonHttpPayloadWithStructureAndEmptyResponseBody",
287+
documentation: "Serializes a structure in the payload",
288+
protocol: restJson1,
289+
code: 200,
290+
body: "",
291+
params: {
292+
nested: null
293+
}
294+
}
295+
])
296+
284297
structure HttpPayloadWithStructureInputOutput {
285298
@httpPayload
286299
nested: NestedPayload,

0 commit comments

Comments
 (0)