diff --git a/smithy-aws-protocol-tests/model/awsJson1_0/unions.smithy b/smithy-aws-protocol-tests/model/awsJson1_0/unions.smithy index 8c4391538a1..c5718bd734f 100644 --- a/smithy-aws-protocol-tests/model/awsJson1_0/unions.smithy +++ b/smithy-aws-protocol-tests/model/awsJson1_0/unions.smithy @@ -535,5 +535,40 @@ apply JsonUnions @httpResponseTests([ } } } + }, + { + id: "AwsJson10DeserializeAllowNulls" + appliesTo: "client" + documentation: "Allows for `: null` to be set for all unset fields" + protocol: awsJson1_0 + code: 200 + body: """ + { + "contents": { + "stringValue": null, + "booleanValue": null, + "numberValue": null, + "blobValue": null, + "timestampValue": null, + "enumValue": null, + "intEnumValue": null, + "listValue": null, + "mapValue": null, + "structureValue": { + "hi": "hello" + } + } + }""" + bodyMediaType: "application/json" + headers: { + "Content-Type": "application/x-amz-json-1.0" + }, + params: { + contents: { + structureValue: { + hi: "hello" + } + } + } } ])