Skip to content

Commit 30831c7

Browse files
Update code generation to Smithy 1.10 (#2626)
* chore(codegen): bump Smithy dependencies to 1.10 * chore(codegen): regenerate with Smithy 1.10
1 parent 28687ee commit 30831c7

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Diff for: codegen/protocol-test-codegen/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
}
2121

2222
dependencies {
23-
implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.9.1, 1.10.0[")
23+
implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.10.0, 1.11.0[")
2424
compile(project(":smithy-aws-typescript-codegen"))
2525
}
2626

Diff for: codegen/smithy-aws-typescript-codegen/build.gradle.kts

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ buildscript {
2525
mavenCentral()
2626
}
2727
dependencies {
28-
classpath("software.amazon.smithy:smithy-model:[1.9.0, 1.10.0[")
28+
classpath("software.amazon.smithy:smithy-model:[1.10.0, 1.11.0[")
2929
}
3030
}
3131

3232
dependencies {
33-
api("software.amazon.smithy:smithy-aws-cloudformation-traits:[1.9.0, 1.10.0[")
34-
api("software.amazon.smithy:smithy-aws-traits:[1.9.0, 1.10.0[")
35-
api("software.amazon.smithy:smithy-waiters:[1.9.0, 1.10.0[")
36-
api("software.amazon.smithy:smithy-aws-iam-traits:[1.9.0, 1.10.0[")
37-
api("software.amazon.smithy:smithy-protocol-test-traits:[1.9.0, 1.10.0[")
33+
api("software.amazon.smithy:smithy-aws-cloudformation-traits:[1.10.0, 1.11.0[")
34+
api("software.amazon.smithy:smithy-aws-traits:[1.10.0, 1.11.0[")
35+
api("software.amazon.smithy:smithy-waiters:[1.10.0, 1.11.0[")
36+
api("software.amazon.smithy:smithy-aws-iam-traits:[1.10.0, 1.11.0[")
37+
api("software.amazon.smithy:smithy-protocol-test-traits:[1.10.0, 1.11.0[")
3838
api("software.amazon.smithy.typescript:smithy-typescript-codegen:0.5.0")
3939
}
4040

Diff for: protocol_tests/aws-restjson/models/models_0.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface AllQueryStringTypesInput {
3333
queryTimestampList?: Date[];
3434
queryEnum?: FooEnum | string;
3535
queryEnumList?: (FooEnum | string)[];
36-
queryParamsMapOfStrings?: { [key: string]: string };
36+
queryParamsMapOfStringList?: { [key: string]: string[] };
3737
}
3838

3939
export namespace AllQueryStringTypesInput {

Diff for: protocol_tests/aws-restjson/protocols/Aws_restJson1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const serializeAws_restJson1AllQueryStringTypesCommand = async (
168168
let resolvedPath =
169169
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AllQueryStringTypesInput";
170170
const query: any = {
171-
...(input.queryParamsMapOfStrings !== undefined && input.queryParamsMapOfStrings),
171+
...(input.queryParamsMapOfStringList !== undefined && input.queryParamsMapOfStringList),
172172
...(input.queryString !== undefined && { String: input.queryString }),
173173
...(input.queryStringList !== undefined && { StringList: (input.queryStringList || []).map((_entry) => _entry) }),
174174
...(input.queryStringSet !== undefined && {

Diff for: protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ it("RestJsonQueryStringMap:Request", async () => {
304304
});
305305

306306
const command = new AllQueryStringTypesCommand({
307-
queryParamsMapOfStrings: {
308-
QueryParamsStringKeyA: "Foo",
307+
queryParamsMapOfStringList: {
308+
QueryParamsStringKeyA: ["Foo"],
309309

310-
QueryParamsStringKeyB: "Bar",
310+
QueryParamsStringKeyB: ["Bar"],
311311
} as any,
312312
} as any);
313313
try {

0 commit comments

Comments
 (0)