File tree Expand file tree Collapse file tree 4 files changed +69
-5
lines changed
protocol-tests-core/src/main/resources/software/amazon/awssdk/protocol/suites/cases
protocol-tests/src/main/resources/codegen-resources Expand file tree Collapse file tree 4 files changed +69
-5
lines changed Original file line number Diff line number Diff line change 349
349
"stringMember" : " "
350
350
}
351
351
}
352
+ },
353
+ {
354
+ "description" : " ListOfTimeStamp with known values unmarshalled correctly" ,
355
+ "given" : {
356
+ "response" : {
357
+ "status_code" : 200 ,
358
+ "body" : " <AllTypesResponse><AllTypesResult><ListOfTimeStamp><item>1398796238.123</item><item>2591234567.123</item></ListOfTimeStamp></AllTypesResult></AllTypesResponse>"
359
+ }
360
+ },
361
+ "when" : {
362
+ "action" : " unmarshall" ,
363
+
364
+ "operation" : " AllTypes"
365
+ },
366
+ "then" : {
367
+ "deserializedAs" : {
368
+ "ListOfTimeStamp" : [1398796238123 ,2591234567123 ]
369
+ }
370
+ }
371
+ },
372
+ {
373
+ "description" : " MapOfTimeStamp with known values unmarshalled correctly" ,
374
+ "given" : {
375
+ "response" : {
376
+ "status_code" : 200 ,
377
+ "body" : " <AllTypesResponse><AllTypesResult><MapOfTimeStamp><entry><key>test1</key><value>1398796238.123</value></entry><entry><key>test2</key><value>2591234567.123</value></entry></MapOfTimeStamp></AllTypesResult></AllTypesResponse>"
378
+ }
379
+ },
380
+ "when" : {
381
+ "action" : " unmarshall" ,
382
+
383
+ "operation" : " AllTypes"
384
+ },
385
+ "then" : {
386
+ "deserializedAs" : {
387
+ "MapOfTimeStamp" : {
388
+ "test1" : " 1398796238123" ,
389
+ "test2" : " 2591234567123"
390
+ }
391
+ }
392
+ }
352
393
}
353
394
]
Original file line number Diff line number Diff line change 169
169
"type" :" timestamp" ,
170
170
"timestampFormat" :" iso8601"
171
171
},
172
+ "UnixTimestamp" :{
173
+ "type" :" timestamp" ,
174
+ "timestampFormat" :" unixTimestamp"
175
+ },
172
176
"ListOfAllTypesStructs" :{
173
177
"type" :" list" ,
174
178
"member" :{"shape" :" AllTypesStructure" }
300
304
"Timestamp" :{"type" :" timestamp" },
301
305
"ListOfTimeStamp" :{
302
306
"type" :" list" ,
303
- "member" :{"shape" :" Timestamp " }
307
+ "member" :{"shape" :" UnixTimestamp " }
304
308
},
305
309
"MapOfTimeStamp" :{
306
310
"type" :" map" ,
307
311
"key" :{"shape" :" String" },
308
- "value" :{"shape" :" Timestamp " }
312
+ "value" :{"shape" :" UnixTimestamp " }
309
313
},
310
314
"MyDocument" : {
311
315
"type" : " structure" ,
Original file line number Diff line number Diff line change 87
87
"structWithNestedTimestampMember" :{"shape" :" StructWithTimestamp" },
88
88
"blobArg" :{"shape" :" BlobType" },
89
89
"blobMap" :{"shape" :" BlobMapType" },
90
- "listOfBlobs" :{"shape" :" ListOfBlobsType" }
90
+ "listOfBlobs" :{"shape" :" ListOfBlobsType" },
91
+ "ListOfTimeStamp" : {"shape" : " ListOfTimeStamp" },
92
+ "MapOfTimeStamp" : {"shape" : " MapOfTimeStamp" }
91
93
}
92
94
},
93
95
"BlobMapType" :{
213
215
"NestedTimestamp" :{"shape" :" Timestamp" }
214
216
}
215
217
},
218
+ "ListOfTimeStamp" :{
219
+ "type" :" list" ,
220
+ "member" :{"shape" :" UnixTimestamp" ,"locationName" :" item" }
221
+ },
222
+ "MapOfTimeStamp" :{
223
+ "type" :" map" ,
224
+ "key" :{"shape" :" String" },
225
+ "value" :{"shape" :" UnixTimestamp" }
226
+ },
227
+ "UnixTimestamp" :{
228
+ "type" :" timestamp" ,
229
+ "timestampFormat" :" unixTimestamp"
230
+ },
216
231
"ImplicitPayloadException" :{
217
232
"type" :" structure" ,
218
233
"members" :{
Original file line number Diff line number Diff line change 393
393
"type" :" timestamp" ,
394
394
"timestampFormat" :" iso8601"
395
395
},
396
+ "UnixTimestamp" :{
397
+ "type" :" timestamp" ,
398
+ "timestampFormat" :" unixTimestamp"
399
+ },
396
400
"JsonValuesStructure" :{
397
401
"type" :" structure" ,
398
402
"members" :{
771
775
"Timestamp" :{"type" :" timestamp" },
772
776
"ListOfTimeStamp" :{
773
777
"type" :" list" ,
774
- "member" :{"shape" :" Timestamp " }
778
+ "member" :{"shape" :" UnixTimestamp " }
775
779
},
776
780
"MapOfTimeStamp" :{
777
781
"type" :" map" ,
778
782
"key" :{"shape" :" String" },
779
- "value" :{"shape" :" Timestamp " }
783
+ "value" :{"shape" :" UnixTimestamp " }
780
784
},
781
785
"EventStreamOperationRequest" : {
782
786
"type" : " structure" ,
You can’t perform that action at this time.
0 commit comments