Skip to content

Commit

Permalink
feat(codegen): add Smithy RPCv2 CBOR to list of protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Aug 16, 2024
1 parent e2ce217 commit 1065237
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -29,7 +30,14 @@ public class AddProtocols implements TypeScriptIntegration {

@Override
public List<ProtocolGenerator> 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()
);
}
}

0 comments on commit 1065237

Please sign in to comment.