Skip to content

Commit b0edb9d

Browse files
authored
chore(protocol_tests): consume httpQueryParams trait (#2246)
1 parent cb0d4ed commit b0edb9d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

protocol_tests/aws-restjson/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export const serializeAws_restJson1AllQueryStringTypesCommand = async (
150150
const headers: any = {};
151151
let resolvedPath = "/AllQueryStringTypesInput";
152152
const query: any = {
153+
...(input.queryParamsMapOfStrings !== undefined && input.queryParamsMapOfStrings),
153154
...(input.queryString !== undefined && { String: input.queryString }),
154155
...(input.queryStringList !== undefined && { StringList: (input.queryStringList || []).map((_entry) => _entry) }),
155156
...(input.queryStringSet !== undefined && {
@@ -1233,6 +1234,7 @@ export const serializeAws_restJson1QueryParamsAsStringListMapCommand = async (
12331234
const headers: any = {};
12341235
let resolvedPath = "/StringListMap";
12351236
const query: any = {
1237+
...(input.foo !== undefined && input.foo),
12361238
...(input.qux !== undefined && { corge: input.qux }),
12371239
};
12381240
let body: any;
@@ -1256,6 +1258,7 @@ export const serializeAws_restJson1QueryPrecedenceCommand = async (
12561258
const headers: any = {};
12571259
let resolvedPath = "/Precedence";
12581260
const query: any = {
1261+
...(input.baz !== undefined && input.baz),
12591262
...(input.foo !== undefined && { bar: input.foo }),
12601263
};
12611264
let body: any;

protocol_tests/aws-restxml/protocols/Aws_restXml.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export const serializeAws_restXmlAllQueryStringTypesCommand = async (
173173
const headers: any = {};
174174
let resolvedPath = "/AllQueryStringTypesInput";
175175
const query: any = {
176+
...(input.queryParamsMapOfStrings !== undefined && input.queryParamsMapOfStrings),
176177
...(input.queryString !== undefined && { String: input.queryString }),
177178
...(input.queryStringList !== undefined && { StringList: (input.queryStringList || []).map((_entry) => _entry) }),
178179
...(input.queryStringSet !== undefined && {
@@ -1148,6 +1149,7 @@ export const serializeAws_restXmlQueryParamsAsStringListMapCommand = async (
11481149
const headers: any = {};
11491150
let resolvedPath = "/StringListMap";
11501151
const query: any = {
1152+
...(input.foo !== undefined && input.foo),
11511153
...(input.qux !== undefined && { corge: input.qux }),
11521154
};
11531155
let body: any;
@@ -1171,6 +1173,7 @@ export const serializeAws_restXmlQueryPrecedenceCommand = async (
11711173
const headers: any = {};
11721174
let resolvedPath = "/Precedence";
11731175
const query: any = {
1176+
...(input.baz !== undefined && input.baz),
11741177
...(input.foo !== undefined && { bar: input.foo }),
11751178
};
11761179
let body: any;

0 commit comments

Comments
 (0)