mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Conver to regular Go vendor + dep tool
This commit is contained in:
+454
@@ -0,0 +1,454 @@
|
||||
[
|
||||
{
|
||||
"description": "Scalar members",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType",
|
||||
"locationName": "FooNum"
|
||||
},
|
||||
"FalseBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"Float": {
|
||||
"shape": "FloatType"
|
||||
},
|
||||
"Double": {
|
||||
"shape": "DoubleType"
|
||||
},
|
||||
"Long": {
|
||||
"shape": "LongType"
|
||||
},
|
||||
"Char": {
|
||||
"shape": "CharType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanType": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatType": {
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleType": {
|
||||
"type": "double"
|
||||
},
|
||||
"LongType": {
|
||||
"type": "long"
|
||||
},
|
||||
"CharType": {
|
||||
"type": "character"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Str": "myname",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Str>myname</Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><RequestId>request-id</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Blob",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Blob": {
|
||||
"shape": "BlobType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobType": {
|
||||
"type": "blob"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Blob": "value"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Blob>dmFsdWU=</Blob><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><ListMember><member>abc</member><member>123</member></ListMember><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "List with custom member name",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType",
|
||||
"locationName": "item"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><ListMember><item>abc</item><item>123</item></ListMember><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened List",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><ListMember>abc</ListMember><ListMember>123</ListMember><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Normal map",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StructureType"
|
||||
}
|
||||
},
|
||||
"StructureType": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"baz": {
|
||||
"foo": "bam"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Map><entry><key>qux</key><value><foo>bar</foo></value></entry><entry><key>baz</key><value><foo>bam</foo></value></entry></Map><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened map",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "MapType",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Map><key>qux</key><value>bar</value></Map><Map><key>baz</key><value>bam</value></Map><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Named map",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "MapType",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType",
|
||||
"locationName": "foo"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType",
|
||||
"locationName": "bar"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Map><foo>qux</foo><bar>bar</bar></Map><Map><foo>baz</foo><bar>bam</bar></Map><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Empty string",
|
||||
"metadata": {
|
||||
"protocol": "ec2"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Foo": ""
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Foo/><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
+369
@@ -0,0 +1,369 @@
|
||||
[
|
||||
{
|
||||
"description": "Scalar members",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType"
|
||||
},
|
||||
"FalseBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"Float": {
|
||||
"shape": "FloatType"
|
||||
},
|
||||
"Double": {
|
||||
"shape": "DoubleType"
|
||||
},
|
||||
"Long": {
|
||||
"shape": "LongType"
|
||||
},
|
||||
"Char": {
|
||||
"shape": "CharType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanType": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatType": {
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleType": {
|
||||
"type": "double"
|
||||
},
|
||||
"LongType": {
|
||||
"type": "long"
|
||||
},
|
||||
"CharType": {
|
||||
"type": "character"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Str": "myname",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Blob members",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"BlobMember": {
|
||||
"shape": "BlobType"
|
||||
},
|
||||
"StructMember": {
|
||||
"shape": "BlobContainer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobType": {
|
||||
"type": "blob"
|
||||
},
|
||||
"BlobContainer": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "BlobType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"BlobMember": "hi!",
|
||||
"StructMember": {
|
||||
"foo": "there!"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Timestamp members",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"TimeMember": {
|
||||
"shape": "TimeType"
|
||||
},
|
||||
"StructMember": {
|
||||
"shape": "TimeContainer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TimeType": {
|
||||
"type": "timestamp"
|
||||
},
|
||||
"TimeContainer": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "TimeType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"TimeMember": 1398796238,
|
||||
"StructMember": {
|
||||
"foo": 1398796238
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType"
|
||||
},
|
||||
"ListMemberMap": {
|
||||
"shape": "ListTypeMap"
|
||||
},
|
||||
"ListMemberStruct": {
|
||||
"shape": "ListTypeStruct"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"ListTypeMap": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
},
|
||||
"ListTypeStruct": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StructType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"StructType": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": { "shape": "StringType" },
|
||||
"value": { "shape": "StringType" }
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["a", "b"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"ListMember\": [\"a\", \"b\"]}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["a", null],
|
||||
"ListMemberMap": [{}, null, null, {}],
|
||||
"ListMemberStruct": [{}, null, null, {}]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"ListMember\": [\"a\", null], \"ListMemberMap\": [{}, null, null, {}], \"ListMemberStruct\": [{}, null, null, {}]}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Maps",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"MapMember": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "NumberList"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"NumberList": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "IntegerType"
|
||||
}
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"MapMember": {
|
||||
"a": [1, 2],
|
||||
"b": [3, 4]
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Ignores extra data",
|
||||
"metadata": {
|
||||
"protocol": "json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"StrType": {
|
||||
"shape": "StrType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StrType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"foo\": \"bar\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
+776
@@ -0,0 +1,776 @@
|
||||
[
|
||||
{
|
||||
"description": "Scalar members",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType",
|
||||
"locationName": "FooNum"
|
||||
},
|
||||
"FalseBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"Float": {
|
||||
"shape": "FloatType"
|
||||
},
|
||||
"Double": {
|
||||
"shape": "DoubleType"
|
||||
},
|
||||
"Long": {
|
||||
"shape": "LongType"
|
||||
},
|
||||
"Char": {
|
||||
"shape": "CharType"
|
||||
},
|
||||
"Timestamp": {
|
||||
"shape": "TimestampType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanType": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatType": {
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleType": {
|
||||
"type": "double"
|
||||
},
|
||||
"LongType": {
|
||||
"type": "long"
|
||||
},
|
||||
"CharType": {
|
||||
"type": "character"
|
||||
},
|
||||
"TimestampType": {
|
||||
"type": "timestamp"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Str": "myname",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a",
|
||||
"Timestamp": 1422172800
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Str>myname</Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp></OperationNameResult><ResponseMetadata><RequestId>request-id</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Not all members in response",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Str": "myname"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Str>myname</Str></OperationNameResult><ResponseMetadata><RequestId>request-id</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Blob",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Blob": {
|
||||
"shape": "BlobType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobType": {
|
||||
"type": "blob"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Blob": "value"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Blob>dmFsdWU=</Blob></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><ListMember><member>abc</member><member>123</member></ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "List with custom member name",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType",
|
||||
"locationName": "item"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><ListMember><item>abc</item><item>123</item></ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened List",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"flattened": true,
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><ListMember>abc</ListMember><ListMember>123</ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened single element list",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"flattened": true,
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><ListMember>abc</ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "List of structures",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"List": {
|
||||
"shape": "ListOfStructs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListOfStructs": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StructureShape"
|
||||
}
|
||||
},
|
||||
"StructureShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringShape"
|
||||
},
|
||||
"Bar": {
|
||||
"shape": "StringShape"
|
||||
},
|
||||
"Baz": {
|
||||
"shape": "StringShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringShape": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"List": [{"Foo": "firstfoo", "Bar": "firstbar", "Baz": "firstbaz"}, {"Foo": "secondfoo", "Bar": "secondbar", "Baz": "secondbaz"}]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><List><member><Foo>firstfoo</Foo><Bar>firstbar</Bar><Baz>firstbaz</Baz></member><member><Foo>secondfoo</Foo><Bar>secondbar</Bar><Baz>secondbaz</Baz></member></List></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened list of structures",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"members": {
|
||||
"List": {
|
||||
"shape": "ListOfStructs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListOfStructs": {
|
||||
"type": "list",
|
||||
"flattened": true,
|
||||
"member": {
|
||||
"shape": "StructureShape"
|
||||
}
|
||||
},
|
||||
"StructureShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringShape"
|
||||
},
|
||||
"Bar": {
|
||||
"shape": "StringShape"
|
||||
},
|
||||
"Baz": {
|
||||
"shape": "StringShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringShape": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"List": [{"Foo": "firstfoo", "Bar": "firstbar", "Baz": "firstbaz"}, {"Foo": "secondfoo", "Bar": "secondbar", "Baz": "secondbaz"}]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><List><Foo>firstfoo</Foo><Bar>firstbar</Bar><Baz>firstbaz</Baz></List><List><Foo>secondfoo</Foo><Bar>secondbar</Bar><Baz>secondbaz</Baz></List></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened list with location name",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"List": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"flattened": true,
|
||||
"member": {
|
||||
"shape": "StringShape",
|
||||
"locationName": "NamedList"
|
||||
}
|
||||
},
|
||||
"StringShape": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"List": ["a", "b"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><NamedList>a</NamedList><NamedList>b</NamedList></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Normal map",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StructType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"StructType": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"baz": {
|
||||
"foo": "bam"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08\"><OperationNameResult><Map><entry><key>qux</key><value><foo>bar</foo></value></entry><entry><key>baz</key><value><foo>bam</foo></value></entry></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened map",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Map><key>qux</key><value>bar</value></Map><Map><key>baz</key><value>bam</value></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened map in shape definition",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap",
|
||||
"locationName": "Attribute"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType",
|
||||
"locationName": "Name"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType",
|
||||
"locationName": "Value"
|
||||
},
|
||||
"flattened": true,
|
||||
"locationName": "Attribute"
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Attribute><Name>qux</Name><Value>bar</Value></Attribute></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Named map",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"flattened": true,
|
||||
"key": {
|
||||
"locationName": "foo",
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"locationName": "bar",
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Map><foo>qux</foo><bar>bar</bar></Map><Map><foo>baz</foo><bar>bam</bar></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Empty string",
|
||||
"metadata": {
|
||||
"protocol": "query"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"resultWrapper": "OperationNameResult",
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Foo": ""
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><OperationNameResult><Foo/></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
+648
@@ -0,0 +1,648 @@
|
||||
[
|
||||
{
|
||||
"description": "Scalar members",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ImaHeader": {
|
||||
"shape": "HeaderShape"
|
||||
},
|
||||
"ImaHeaderLocation": {
|
||||
"shape": "HeaderShape",
|
||||
"locationName": "X-Foo"
|
||||
},
|
||||
"Status": {
|
||||
"shape": "StatusShape",
|
||||
"location": "statusCode"
|
||||
},
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType"
|
||||
},
|
||||
"FalseBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"Float": {
|
||||
"shape": "FloatType"
|
||||
},
|
||||
"Double": {
|
||||
"shape": "DoubleType"
|
||||
},
|
||||
"Long": {
|
||||
"shape": "LongType"
|
||||
},
|
||||
"Char": {
|
||||
"shape": "CharType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HeaderShape": {
|
||||
"type": "string",
|
||||
"location": "header"
|
||||
},
|
||||
"StatusShape": {
|
||||
"type": "integer"
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanType": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatType": {
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleType": {
|
||||
"type": "double"
|
||||
},
|
||||
"LongType": {
|
||||
"type": "long"
|
||||
},
|
||||
"CharType": {
|
||||
"type": "character"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ImaHeader": "test",
|
||||
"ImaHeaderLocation": "abc",
|
||||
"Status": 200,
|
||||
"Str": "myname",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"ImaHeader": "test",
|
||||
"X-Foo": "abc"
|
||||
},
|
||||
"body": "{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Blob members",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"BlobMember": {
|
||||
"shape": "BlobType"
|
||||
},
|
||||
"StructMember": {
|
||||
"shape": "BlobContainer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobType": {
|
||||
"type": "blob"
|
||||
},
|
||||
"BlobContainer": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "BlobType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"BlobMember": "hi!",
|
||||
"StructMember": {
|
||||
"foo": "there!"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Timestamp members",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"TimeMember": {
|
||||
"shape": "TimeType"
|
||||
},
|
||||
"StructMember": {
|
||||
"shape": "TimeContainer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TimeType": {
|
||||
"type": "timestamp"
|
||||
},
|
||||
"TimeContainer": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "TimeType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"TimeMember": 1398796238,
|
||||
"StructMember": {
|
||||
"foo": 1398796238
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["a", "b"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"ListMember\": [\"a\", \"b\"]}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists with structure member",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "SingleStruct"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"SingleStruct": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": [{"Foo": "a"}, {"Foo": "b"}]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"ListMember\": [{\"Foo\": \"a\"}, {\"Foo\": \"b\"}]}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Maps",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"MapMember": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "ListType"
|
||||
}
|
||||
},
|
||||
"ListType": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "IntegerType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"MapMember": {
|
||||
"a": [1, 2],
|
||||
"b": [3, 4]
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Complex Map Values",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"MapMember": {
|
||||
"shape": "MapType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MapType": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "TimeType"
|
||||
}
|
||||
},
|
||||
"TimeType": {
|
||||
"type": "timestamp"
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"MapMember": {
|
||||
"a": 1398796238,
|
||||
"b": 1398796238
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"MapMember\": {\"a\": 1398796238, \"b\": 1398796238}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Ignores extra data",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"StrType": {
|
||||
"shape": "StrType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StrType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "{\"foo\": \"bar\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Supports header maps",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"AllHeaders": {
|
||||
"shape": "HeaderMap",
|
||||
"location": "headers"
|
||||
},
|
||||
"PrefixedHeaders": {
|
||||
"shape": "HeaderMap",
|
||||
"location": "headers",
|
||||
"locationName": "X-"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HeaderMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"AllHeaders": {
|
||||
"Content-Length": "10",
|
||||
"X-Foo": "bar",
|
||||
"X-Bam": "boo"
|
||||
},
|
||||
"PrefixedHeaders": {
|
||||
"Foo": "bar",
|
||||
"Bam": "boo"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"Content-Length": "10",
|
||||
"X-Foo": "bar",
|
||||
"X-Bam": "boo"
|
||||
},
|
||||
"body": "{}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "JSON payload",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"payload": "Data",
|
||||
"members": {
|
||||
"Header": {
|
||||
"shape": "StringType",
|
||||
"location": "header",
|
||||
"locationName": "X-Foo"
|
||||
},
|
||||
"Data": {
|
||||
"shape": "BodyStructure"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BodyStructure": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Header": "baz",
|
||||
"Data": {
|
||||
"Foo": "abc"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"X-Foo": "baz"
|
||||
},
|
||||
"body": "{\"Foo\": \"abc\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Streaming payload",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"payload": "Stream",
|
||||
"members": {
|
||||
"Stream": {
|
||||
"shape": "Stream"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Stream": {
|
||||
"type": "blob"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Stream": "abc"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "abc"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "JSON value trait",
|
||||
"metadata": {
|
||||
"protocol": "rest-json"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Attr": {
|
||||
"shape": "StringType",
|
||||
"jsonvalue": true,
|
||||
"location": "header",
|
||||
"locationName": "X-Amz-Foo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Attr": {"Foo":"Bar"}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {"X-Amz-Foo": "eyJGb28iOiJCYXIifQ=="},
|
||||
"body": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
+720
@@ -0,0 +1,720 @@
|
||||
[
|
||||
{
|
||||
"description": "Scalar members",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ImaHeader": {
|
||||
"shape": "HeaderShape"
|
||||
},
|
||||
"ImaHeaderLocation": {
|
||||
"shape": "HeaderShape",
|
||||
"locationName": "X-Foo"
|
||||
},
|
||||
"Str": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"Num": {
|
||||
"shape": "IntegerType",
|
||||
"locationName": "FooNum"
|
||||
},
|
||||
"FalseBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"shape": "BooleanType"
|
||||
},
|
||||
"Float": {
|
||||
"shape": "FloatType"
|
||||
},
|
||||
"Double": {
|
||||
"shape": "DoubleType"
|
||||
},
|
||||
"Long": {
|
||||
"shape": "LongType"
|
||||
},
|
||||
"Char": {
|
||||
"shape": "CharType"
|
||||
},
|
||||
"Timestamp": {
|
||||
"shape": "TimestampType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanType": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatType": {
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleType": {
|
||||
"type": "double"
|
||||
},
|
||||
"LongType": {
|
||||
"type": "long"
|
||||
},
|
||||
"CharType": {
|
||||
"type": "character"
|
||||
},
|
||||
"HeaderShape": {
|
||||
"type": "string",
|
||||
"location": "header"
|
||||
},
|
||||
"StatusShape": {
|
||||
"type": "integer",
|
||||
"location": "statusCode"
|
||||
},
|
||||
"TimestampType": {
|
||||
"type": "timestamp"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ImaHeader": "test",
|
||||
"ImaHeaderLocation": "abc",
|
||||
"Str": "myname",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a",
|
||||
"Timestamp": 1422172800
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"ImaHeader": "test",
|
||||
"X-Foo": "abc"
|
||||
},
|
||||
"body": "<OperationNameResponse><Str>myname</Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp></OperationNameResponse>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ImaHeader": "test",
|
||||
"ImaHeaderLocation": "abc",
|
||||
"Str": "",
|
||||
"Num": 123,
|
||||
"FalseBool": false,
|
||||
"TrueBool": true,
|
||||
"Float": 1.2,
|
||||
"Double": 1.3,
|
||||
"Long": 200,
|
||||
"Char": "a",
|
||||
"Timestamp": 1422172800
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"ImaHeader": "test",
|
||||
"X-Foo": "abc"
|
||||
},
|
||||
"body": "<OperationNameResponse><Str></Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Blob",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Blob": {
|
||||
"shape": "BlobType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobType": {
|
||||
"type": "blob"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Blob": "value"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><Blob>dmFsdWU=</Blob></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Lists",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><ListMember><member>abc</member><member>123</member></ListMember></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "List with custom member name",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "ListShape"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListShape": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType",
|
||||
"locationName": "item"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><ListMember><item>abc</item><item>123</item></ListMember></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened List",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"ListMember": {
|
||||
"shape": "StringList",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringList": {
|
||||
"type": "list",
|
||||
"member": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"ListMember": ["abc", "123"]
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><ListMember>abc</ListMember><ListMember>123</ListMember></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Normal map",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "SingleStructure"
|
||||
}
|
||||
},
|
||||
"SingleStructure": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"baz": {
|
||||
"foo": "bam"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><Map><entry><key>qux</key><value><foo>bar</foo></value></entry><entry><key>baz</key><value><foo>bam</foo></value></entry></Map></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Flattened map",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap",
|
||||
"flattened": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><Map><key>qux</key><value>bar</value></Map><Map><key>baz</key><value>bam</value></Map></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Named map",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Map": {
|
||||
"shape": "StringMap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringMap": {
|
||||
"type": "map",
|
||||
"key": {
|
||||
"shape": "StringType",
|
||||
"locationName": "foo"
|
||||
},
|
||||
"value": {
|
||||
"shape": "StringType",
|
||||
"locationName": "bar"
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Map": {
|
||||
"qux": "bar",
|
||||
"baz": "bam"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResult><Map><entry><foo>qux</foo><bar>bar</bar></entry><entry><foo>baz</foo><bar>bam</bar></entry></Map></OperationNameResult>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "XML payload",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"payload": "Data",
|
||||
"members": {
|
||||
"Header": {
|
||||
"shape": "StringType",
|
||||
"location": "header",
|
||||
"locationName": "X-Foo"
|
||||
},
|
||||
"Data": {
|
||||
"shape": "SingleStructure"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
},
|
||||
"SingleStructure": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Header": "baz",
|
||||
"Data": {
|
||||
"Foo": "abc"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"X-Foo": "baz"
|
||||
},
|
||||
"body": "<OperationNameResponse><Foo>abc</Foo></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Streaming payload",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"payload": "Stream",
|
||||
"members": {
|
||||
"Stream": {
|
||||
"shape": "BlobStream"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlobStream": {
|
||||
"type": "blob"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Stream": "abc"
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "abc"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Scalar members in headers",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Str": {
|
||||
"locationName": "x-str",
|
||||
"shape": "StringHeaderType"
|
||||
},
|
||||
"Integer": {
|
||||
"locationName": "x-int",
|
||||
"shape": "IntegerHeaderType"
|
||||
},
|
||||
"TrueBool": {
|
||||
"locationName": "x-true-bool",
|
||||
"shape": "BooleanHeaderType"
|
||||
},
|
||||
"FalseBool": {
|
||||
"locationName": "x-false-bool",
|
||||
"shape": "BooleanHeaderType"
|
||||
},
|
||||
"Float": {
|
||||
"locationName": "x-float",
|
||||
"shape": "FloatHeaderType"
|
||||
},
|
||||
"Double": {
|
||||
"locationName": "x-double",
|
||||
"shape": "DoubleHeaderType"
|
||||
},
|
||||
"Long": {
|
||||
"locationName": "x-long",
|
||||
"shape": "LongHeaderType"
|
||||
},
|
||||
"Char": {
|
||||
"locationName": "x-char",
|
||||
"shape": "CharHeaderType"
|
||||
},
|
||||
"Timestamp": {
|
||||
"locationName": "x-timestamp",
|
||||
"shape": "TimestampHeaderType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringHeaderType": {
|
||||
"location": "header",
|
||||
"type": "string"
|
||||
},
|
||||
"IntegerHeaderType": {
|
||||
"location": "header",
|
||||
"type": "integer"
|
||||
},
|
||||
"BooleanHeaderType": {
|
||||
"location": "header",
|
||||
"type": "boolean"
|
||||
},
|
||||
"FloatHeaderType": {
|
||||
"location": "header",
|
||||
"type": "float"
|
||||
},
|
||||
"DoubleHeaderType": {
|
||||
"location": "header",
|
||||
"type": "double"
|
||||
},
|
||||
"LongHeaderType": {
|
||||
"location": "header",
|
||||
"type": "long"
|
||||
},
|
||||
"CharHeaderType": {
|
||||
"location": "header",
|
||||
"type": "character"
|
||||
},
|
||||
"TimestampHeaderType": {
|
||||
"location": "header",
|
||||
"type": "timestamp"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Str": "string",
|
||||
"Integer": 1,
|
||||
"TrueBool": true,
|
||||
"FalseBool": false,
|
||||
"Float": 1.5,
|
||||
"Double": 1.5,
|
||||
"Long": 100,
|
||||
"Char": "a",
|
||||
"Timestamp": 1422172800
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {
|
||||
"x-str": "string",
|
||||
"x-int": "1",
|
||||
"x-true-bool": "true",
|
||||
"x-false-bool": "false",
|
||||
"x-float": "1.5",
|
||||
"x-double": "1.5",
|
||||
"x-long": "100",
|
||||
"x-char": "a",
|
||||
"x-timestamp": "Sun, 25 Jan 2015 08:00:00 GMT"
|
||||
},
|
||||
"body": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Empty string",
|
||||
"metadata": {
|
||||
"protocol": "rest-xml"
|
||||
},
|
||||
"shapes": {
|
||||
"OutputShape": {
|
||||
"type": "structure",
|
||||
"members": {
|
||||
"Foo": {
|
||||
"shape": "StringType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StringType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"given": {
|
||||
"output": {
|
||||
"shape": "OutputShape"
|
||||
},
|
||||
"name": "OperationName"
|
||||
},
|
||||
"result": {
|
||||
"Foo": ""
|
||||
},
|
||||
"response": {
|
||||
"status_code": 200,
|
||||
"headers": {},
|
||||
"body": "<OperationNameResponse><Foo/><RequestId>requestid</RequestId></OperationNameResponse>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user