Skip to content

Commit 9b3c841

Browse files
committed
Add a test for explicit payload member and empty body responses
1 parent b832d1b commit 9b3c841

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,20 @@ 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+
bodyMediaType: "application/json",
292+
params: {
293+
nested: null
294+
}
295+
}
296+
])
297+
284298
structure HttpPayloadWithStructureInputOutput {
285299
@httpPayload
286300
nested: NestedPayload,

0 commit comments

Comments
 (0)