@@ -28,6 +28,7 @@ use smithy.test#httpResponseTests
28
28
/// 6. Flattened XML lists with @xmlName.
29
29
/// 7. Flattened XML lists with @xmlNamespace.
30
30
/// 8. Lists of structures.
31
+ /// 9. Flattened XML list of structures
31
32
@idempotent
32
33
@http (uri : " /XmlLists" , method : " PUT" )
33
34
operation XmlLists {
@@ -96,6 +97,14 @@ apply XmlLists @httpRequestTests([
96
97
<other>4</other>
97
98
</item>
98
99
</myStructureList>
100
+ <flattenedStructureList>
101
+ <value>5</value>
102
+ <other>6</other>
103
+ </flattenedStructureList>
104
+ <flattenedStructureList>
105
+ <value>7</value>
106
+ <other>8</other>
107
+ </flattenedStructureList>
99
108
</XmlListsInputOutput>
100
109
""" ,
101
110
bodyMediaType : " application/xml" ,
@@ -122,6 +131,16 @@ apply XmlLists @httpRequestTests([
122
131
a : " 3" ,
123
132
b : " 4" ,
124
133
}
134
+ ],
135
+ flattenedStructureList : [
136
+ {
137
+ a : " 5" ,
138
+ b : " 6" ,
139
+ },
140
+ {
141
+ a : " 7" ,
142
+ b : " 8" ,
143
+ }
125
144
]
126
145
}
127
146
}
@@ -191,6 +210,14 @@ apply XmlLists @httpResponseTests([
191
210
<other>4</other>
192
211
</item>
193
212
</myStructureList>
213
+ <flattenedStructureList>
214
+ <value>5</value>
215
+ <other>6</other>
216
+ </flattenedStructureList>
217
+ <flattenedStructureList>
218
+ <value>7</value>
219
+ <other>8</other>
220
+ </flattenedStructureList>
194
221
</XmlListsInputOutput>
195
222
""" ,
196
223
bodyMediaType : " application/xml" ,
@@ -219,6 +246,16 @@ apply XmlLists @httpResponseTests([
219
246
a : " 3" ,
220
247
b : " 4" ,
221
248
}
249
+ ],
250
+ flattenedStructureList : [
251
+ {
252
+ a : " 5" ,
253
+ b : " 6" ,
254
+ },
255
+ {
256
+ a : " 7" ,
257
+ b : " 8" ,
258
+ }
222
259
]
223
260
}
224
261
}
@@ -321,7 +358,10 @@ structure XmlListsInputOutput {
321
358
flattenedListWithNamespace : ListWithNamespace ,
322
359
323
360
@xmlName (" myStructureList" )
324
- structureList : StructureList
361
+ structureList : StructureList ,
362
+
363
+ @xmlFlattened
364
+ flattenedStructureList : StructureList
325
365
}
326
366
327
367
list RenamedListMembers {
0 commit comments