Skip to content

Commit

Permalink
Update code generation to Smithy 1.10 (#2626)
Browse files Browse the repository at this point in the history
* chore(codegen): bump Smithy dependencies to 1.10

* chore(codegen): regenerate with Smithy 1.10
  • Loading branch information
adamthom-amzn authored Jul 30, 2021
1 parent 28687ee commit 30831c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion codegen/protocol-test-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

Expand Down
12 changes: 6 additions & 6 deletions codegen/smithy-aws-typescript-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion protocol_tests/aws-restjson/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion protocol_tests/aws-restjson/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 && {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30831c7

Please sign in to comment.