@@ -273,6 +273,8 @@ type OutputService1TestShapeOutputService1TestCaseOperation3Output struct {
273
273
274
274
Float * float64 `type:"float"`
275
275
276
+ Float64s []float64 `type:"list"`
277
+
276
278
ImaHeader * string `location:"header" type:"string"`
277
279
278
280
ImaHeaderLocation * string `location:"header" locationName:"X-Foo" type:"string"`
@@ -333,6 +335,18 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation3Output) MarshalFi
333
335
metadata := protocol.Metadata {}
334
336
e .SetValue (protocol .BodyTarget , "Float" , protocol .Float64Value (v ), metadata )
335
337
}
338
+ if len (s .Float64s ) > 0 {
339
+ v := s .Float64s
340
+
341
+ metadata := protocol.Metadata {}
342
+ ls0 := e .List (protocol .BodyTarget , "Float64s" , metadata )
343
+ ls0 .Start ()
344
+ for _ , v1 := range v {
345
+ ls0 .ListAddValue (protocol .Float64Value (v1 ))
346
+ }
347
+ ls0 .End ()
348
+
349
+ }
336
350
if s .Long != nil {
337
351
v := * s .Long
338
352
@@ -2518,7 +2532,7 @@ func TestOutputService1ProtocolTestScalarMembersCase3(t *testing.T) {
2518
2532
2519
2533
svc := NewOutputService1ProtocolTest (cfg )
2520
2534
2521
- buf := bytes .NewReader ([]byte ("<OperationNameResponse><Blobs><member>dmFsdWU=</member><member>dmFsdWUy</member></Blobs><Timestamps><member>2015-01-25T08:00:00Z</member><member>2015-01-25T08:00:01Z</member></Timestamps></OperationNameResponse>" ))
2535
+ buf := bytes .NewReader ([]byte ("<OperationNameResponse><Float64s><member>0.1</member><member>0.2</member></Float64s>< Blobs><member>dmFsdWU=</member><member>dmFsdWUy</member></Blobs><Timestamps><member>2015-01-25T08:00:00Z</member><member>2015-01-25T08:00:01Z</member></Timestamps></OperationNameResponse>" ))
2522
2536
req := svc .OutputService1TestCaseOperation3Request (nil )
2523
2537
req .HTTPResponse = & http.Response {StatusCode : 200 , Body : ioutil .NopCloser (buf ), Header : http.Header {}}
2524
2538
0 commit comments