From 2d3f3d1d8714068cfd120d3ba45356afdc147c00 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:39:55 -0700 Subject: [PATCH] test: querystring list of integers for rest-json (#4644) --- .../feature-protocol-6c6da7ca.json | 5 ++ test/fixtures/protocol/input/rest-json.json | 50 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .changes/next-release/feature-protocol-6c6da7ca.json diff --git a/.changes/next-release/feature-protocol-6c6da7ca.json b/.changes/next-release/feature-protocol-6c6da7ca.json new file mode 100644 index 0000000000..0ef3dca20b --- /dev/null +++ b/.changes/next-release/feature-protocol-6c6da7ca.json @@ -0,0 +1,5 @@ +{ + "type": "feature", + "category": "protocol", + "description": "test querystring list of integers for rest-json" +} \ No newline at end of file diff --git a/test/fixtures/protocol/input/rest-json.json b/test/fixtures/protocol/input/rest-json.json index 495ebde91a..8bf6f1412f 100644 --- a/test/fixtures/protocol/input/rest-json.json +++ b/test/fixtures/protocol/input/rest-json.json @@ -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": {