Skip to content

Commit

Permalink
test: querystring list of integers for rest-json (#4644)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jun 6, 2024
1 parent 4260370 commit 2d3f3d1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/feature-protocol-6c6da7ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "feature",
"category": "protocol",
"description": "test querystring list of integers for rest-json"
}
50 changes: 50 additions & 0 deletions test/fixtures/protocol/input/rest-json.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,56 @@
}
]
},
{
"description": "Querystring list of integers",
"metadata": {
"protocol": "rest-json",
"apiVersion": "2014-01-01"
},
"shapes": {
"InputShape": {
"type": "structure",
"members": {
"Items": {
"shape": "IntegerList",
"location": "querystring",
"locationName": "item"
}
}
},
"IntegerList": {
"type": "list",
"member": {
"shape": "Integer"
}
},
"Integer": {
"type": "integer"
}
},
"cases": [
{
"given": {
"http": {
"method": "GET",
"requestUri": "/path"
},
"input": {
"shape": "InputShape"
},
"name": "OperationName"
},
"params": {
"Items": [1, 2, 3]
},
"serialized": {
"body": "",
"uri": "/path?item=1&item=2&item=3",
"headers": {}
}
}
]
},
{
"description": "String to string maps in querystring",
"metadata": {
Expand Down

0 comments on commit 2d3f3d1

Please sign in to comment.