From 1065237dbf2d64bf219636edf957abb0e6138d61 Mon Sep 17 00:00:00 2001 From: George Fu Date: Tue, 14 May 2024 16:19:40 +0000 Subject: [PATCH] feat(codegen): add Smithy RPCv2 CBOR to list of protocols --- .../smithy/aws/typescript/codegen/AddProtocols.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java index f1ca46501bbbb..55fb48ad43082 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocols.java @@ -18,6 +18,7 @@ import java.util.List; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; +import software.amazon.smithy.typescript.codegen.protocols.cbor.SmithyRpcV2Cbor; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.SmithyInternalApi; @@ -29,7 +30,14 @@ public class AddProtocols implements TypeScriptIntegration { @Override public List getProtocolGenerators() { - return ListUtils.of(new AwsRestJson1(), new AwsJsonRpc1_0(), new AwsJsonRpc1_1(), - new AwsRestXml(), new AwsQuery(), new AwsEc2()); + return ListUtils.of( + new SmithyRpcV2Cbor(), + new AwsJsonRpc1_0(), + new AwsJsonRpc1_1(), + new AwsRestJson1(), + new AwsRestXml(), + new AwsQuery(), + new AwsEc2() + ); } }