Skip to content

Commit 17599ef

Browse files
committed
chore(codegen): update to Smithy-1.17.0
1 parent a227791 commit 17599ef

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

codegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
version = "0.8.0"
3232
}
3333

34-
extra["smithyVersion"] = "[1.16.3,1.17.0["
34+
extra["smithyVersion"] = "[1.17.0,1.18.0["
3535

3636
// The root project doesn't produce a JAR.
3737
tasks["jar"].enabled = false

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,12 @@ private static boolean filterProtocolTests(
314314
return true;
315315
}
316316

317+
// TODO remove after 1.17.1 or later
318+
// https://github.com/awslabs/smithy/pull/1084
319+
if (testCase.getId().equals("RestJsonOutputUnionWithUnitMember")) {
320+
return true;
321+
}
322+
317323
return false;
318324
}
319325

private/aws-protocoltests-restjson/src/models/models_0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ export namespace PlayerAction {
14351435
}
14361436

14371437
export interface PostPlayerActionInput {
1438-
action: PlayerAction | undefined;
1438+
action?: PlayerAction;
14391439
}
14401440

14411441
export namespace PostPlayerActionInput {

private/aws-protocoltests-restxml/test/functional/restxml.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6473,7 +6473,7 @@ it("XmlUnionsWithBooleanMember:Request", async () => {
64736473
});
64746474

64756475
/**
6476-
* Serializes union union member
6476+
* Serializes union member
64776477
*/
64786478
it("XmlUnionsWithUnionMember:Request", async () => {
64796479
const client = new RestXmlProtocolClient({
@@ -6680,7 +6680,7 @@ it("XmlUnionsWithBooleanMember:Response", async () => {
66806680
});
66816681

66826682
/**
6683-
* Serializes union union member
6683+
* Serializes union member
66846684
*/
66856685
it("XmlUnionsWithUnionMember:Response", async () => {
66866686
const client = new RestXmlProtocolClient({

0 commit comments

Comments
 (0)