Skip to content

Commit

Permalink
add restXml test for flattened list of structures
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd authored and srchase committed May 6, 2021
1 parent 67b82de commit 0e128fe
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion smithy-aws-protocol-tests/model/restXml/document-lists.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -96,6 +97,14 @@ apply XmlLists @httpRequestTests([
<other>4</other>
</item>
</myStructureList>
<flattenedStructureList>
<value>5</value>
<other>6</other>
</flattenedStructureList>
<flattenedStructureList>
<value>7</value>
<other>8</other>
</flattenedStructureList>
</XmlListsInputOutput>
""",
bodyMediaType: "application/xml",
Expand All @@ -122,6 +131,16 @@ apply XmlLists @httpRequestTests([
a: "3",
b: "4",
}
],
flattenedStructureList: [
{
a: "5",
b: "6",
},
{
a: "7",
b: "8",
}
]
}
}
Expand Down Expand Up @@ -191,6 +210,14 @@ apply XmlLists @httpResponseTests([
<other>4</other>
</item>
</myStructureList>
<flattenedStructureList>
<value>5</value>
<other>6</other>
</flattenedStructureList>
<flattenedStructureList>
<value>7</value>
<other>8</other>
</flattenedStructureList>
</XmlListsInputOutput>
""",
bodyMediaType: "application/xml",
Expand Down Expand Up @@ -219,6 +246,16 @@ apply XmlLists @httpResponseTests([
a: "3",
b: "4",
}
],
flattenedStructureList: [
{
a: "5",
b: "6",
},
{
a: "7",
b: "8",
}
]
}
}
Expand Down Expand Up @@ -321,7 +358,10 @@ structure XmlListsInputOutput {
flattenedListWithNamespace: ListWithNamespace,

@xmlName("myStructureList")
structureList: StructureList
structureList: StructureList,

@xmlFlattened
flattenedStructureList: StructureList
}

list RenamedListMembers {
Expand Down

0 comments on commit 0e128fe

Please sign in to comment.