diff --git a/codegen/protocol-test-codegen/build.gradle.kts b/codegen/protocol-test-codegen/build.gradle.kts index 85633be64346..c047f4e00068 100644 --- a/codegen/protocol-test-codegen/build.gradle.kts +++ b/codegen/protocol-test-codegen/build.gradle.kts @@ -20,7 +20,7 @@ plugins { } dependencies { - implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.9.1, 1.10.0[") + implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.10.0, 1.11.0[") compile(project(":smithy-aws-typescript-codegen")) } diff --git a/codegen/smithy-aws-typescript-codegen/build.gradle.kts b/codegen/smithy-aws-typescript-codegen/build.gradle.kts index a3c97c85f5fa..ee97f9f060a6 100644 --- a/codegen/smithy-aws-typescript-codegen/build.gradle.kts +++ b/codegen/smithy-aws-typescript-codegen/build.gradle.kts @@ -25,16 +25,16 @@ buildscript { mavenCentral() } dependencies { - classpath("software.amazon.smithy:smithy-model:[1.9.0, 1.10.0[") + classpath("software.amazon.smithy:smithy-model:[1.10.0, 1.11.0[") } } dependencies { - api("software.amazon.smithy:smithy-aws-cloudformation-traits:[1.9.0, 1.10.0[") - api("software.amazon.smithy:smithy-aws-traits:[1.9.0, 1.10.0[") - api("software.amazon.smithy:smithy-waiters:[1.9.0, 1.10.0[") - api("software.amazon.smithy:smithy-aws-iam-traits:[1.9.0, 1.10.0[") - api("software.amazon.smithy:smithy-protocol-test-traits:[1.9.0, 1.10.0[") + api("software.amazon.smithy:smithy-aws-cloudformation-traits:[1.10.0, 1.11.0[") + api("software.amazon.smithy:smithy-aws-traits:[1.10.0, 1.11.0[") + api("software.amazon.smithy:smithy-waiters:[1.10.0, 1.11.0[") + api("software.amazon.smithy:smithy-aws-iam-traits:[1.10.0, 1.11.0[") + api("software.amazon.smithy:smithy-protocol-test-traits:[1.10.0, 1.11.0[") api("software.amazon.smithy.typescript:smithy-typescript-codegen:0.5.0") } diff --git a/protocol_tests/aws-restjson/models/models_0.ts b/protocol_tests/aws-restjson/models/models_0.ts index c3ee660396a8..087326788e4f 100644 --- a/protocol_tests/aws-restjson/models/models_0.ts +++ b/protocol_tests/aws-restjson/models/models_0.ts @@ -33,7 +33,7 @@ export interface AllQueryStringTypesInput { queryTimestampList?: Date[]; queryEnum?: FooEnum | string; queryEnumList?: (FooEnum | string)[]; - queryParamsMapOfStrings?: { [key: string]: string }; + queryParamsMapOfStringList?: { [key: string]: string[] }; } export namespace AllQueryStringTypesInput { diff --git a/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts b/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts index 40dc2cd2e7fb..8ec3b06abbde 100644 --- a/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts +++ b/protocol_tests/aws-restjson/protocols/Aws_restJson1.ts @@ -168,7 +168,7 @@ export const serializeAws_restJson1AllQueryStringTypesCommand = async ( let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AllQueryStringTypesInput"; const query: any = { - ...(input.queryParamsMapOfStrings !== undefined && input.queryParamsMapOfStrings), + ...(input.queryParamsMapOfStringList !== undefined && input.queryParamsMapOfStringList), ...(input.queryString !== undefined && { String: input.queryString }), ...(input.queryStringList !== undefined && { StringList: (input.queryStringList || []).map((_entry) => _entry) }), ...(input.queryStringSet !== undefined && { diff --git a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts index b0087892ab41..9afefcbf6978 100644 --- a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts +++ b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts @@ -304,10 +304,10 @@ it("RestJsonQueryStringMap:Request", async () => { }); const command = new AllQueryStringTypesCommand({ - queryParamsMapOfStrings: { - QueryParamsStringKeyA: "Foo", + queryParamsMapOfStringList: { + QueryParamsStringKeyA: ["Foo"], - QueryParamsStringKeyB: "Bar", + QueryParamsStringKeyB: ["Bar"], } as any, } as any); try {