Skip to content

Commit 2d3f3d1

Browse files
authored
test: querystring list of integers for rest-json (#4644)
1 parent 4260370 commit 2d3f3d1

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "protocol",
4+
"description": "test querystring list of integers for rest-json"
5+
}

test/fixtures/protocol/input/rest-json.json

+50
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,56 @@
160160
}
161161
]
162162
},
163+
{
164+
"description": "Querystring list of integers",
165+
"metadata": {
166+
"protocol": "rest-json",
167+
"apiVersion": "2014-01-01"
168+
},
169+
"shapes": {
170+
"InputShape": {
171+
"type": "structure",
172+
"members": {
173+
"Items": {
174+
"shape": "IntegerList",
175+
"location": "querystring",
176+
"locationName": "item"
177+
}
178+
}
179+
},
180+
"IntegerList": {
181+
"type": "list",
182+
"member": {
183+
"shape": "Integer"
184+
}
185+
},
186+
"Integer": {
187+
"type": "integer"
188+
}
189+
},
190+
"cases": [
191+
{
192+
"given": {
193+
"http": {
194+
"method": "GET",
195+
"requestUri": "/path"
196+
},
197+
"input": {
198+
"shape": "InputShape"
199+
},
200+
"name": "OperationName"
201+
},
202+
"params": {
203+
"Items": [1, 2, 3]
204+
},
205+
"serialized": {
206+
"body": "",
207+
"uri": "/path?item=1&item=2&item=3",
208+
"headers": {}
209+
}
210+
}
211+
]
212+
},
163213
{
164214
"description": "String to string maps in querystring",
165215
"metadata": {

0 commit comments

Comments
 (0)