From 0e128fe597a559838360b0b050c88e8b9ed7f64d Mon Sep 17 00:00:00 2001 From: Aaron J Todd Date: Fri, 23 Apr 2021 16:59:34 -0400 Subject: [PATCH] add restXml test for flattened list of structures --- .../model/restXml/document-lists.smithy | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/smithy-aws-protocol-tests/model/restXml/document-lists.smithy b/smithy-aws-protocol-tests/model/restXml/document-lists.smithy index 6792351a94d..5a0ab1f0e82 100644 --- a/smithy-aws-protocol-tests/model/restXml/document-lists.smithy +++ b/smithy-aws-protocol-tests/model/restXml/document-lists.smithy @@ -28,6 +28,7 @@ use smithy.test#httpResponseTests /// 6. Flattened XML lists with @xmlName. /// 7. Flattened XML lists with @xmlNamespace. /// 8. Lists of structures. +/// 9. Flattened XML list of structures @idempotent @http(uri: "/XmlLists", method: "PUT") operation XmlLists { @@ -96,6 +97,14 @@ apply XmlLists @httpRequestTests([ 4 + + 5 + 6 + + + 7 + 8 + """, bodyMediaType: "application/xml", @@ -122,6 +131,16 @@ apply XmlLists @httpRequestTests([ a: "3", b: "4", } + ], + flattenedStructureList: [ + { + a: "5", + b: "6", + }, + { + a: "7", + b: "8", + } ] } } @@ -191,6 +210,14 @@ apply XmlLists @httpResponseTests([ 4 + + 5 + 6 + + + 7 + 8 + """, bodyMediaType: "application/xml", @@ -219,6 +246,16 @@ apply XmlLists @httpResponseTests([ a: "3", b: "4", } + ], + flattenedStructureList: [ + { + a: "5", + b: "6", + }, + { + a: "7", + b: "8", + } ] } } @@ -321,7 +358,10 @@ structure XmlListsInputOutput { flattenedListWithNamespace: ListWithNamespace, @xmlName("myStructureList") - structureList: StructureList + structureList: StructureList, + + @xmlFlattened + flattenedStructureList: StructureList } list RenamedListMembers {