Skip to content

Commit

Permalink
add smithy traits dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed May 14, 2024
1 parent 446c0d9 commit 8b4ea40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions smithy-typescript-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies {
// Smithy generic dependencies
api("software.amazon.smithy:smithy-codegen-core:$smithyVersion")
api("software.amazon.smithy:smithy-model:$smithyVersion")
api("software.amazon.smithy:smithy-protocol-traits:$smithyVersion")
api("software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion")
api("software.amazon.smithy:smithy-rules-engine:$smithyVersion")
api("software.amazon.smithy:smithy-waiters:$smithyVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import software.amazon.smithy.model.shapes.Shape;
import software.amazon.smithy.model.shapes.ShapeId;
import software.amazon.smithy.model.shapes.StructureShape;
import software.amazon.smithy.protocol.traits.Rpcv2CborTrait;
import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator;
import software.amazon.smithy.utils.SmithyInternalApi;


/**
* Generator for Smithy RPCv2 CBOR.
*/
Expand All @@ -26,7 +26,7 @@ public SmithyRpcV2Cbor() {

@Override
protected String getDocumentContentType() {
return "";
return "application/cbor";
}

@Override
Expand Down Expand Up @@ -65,7 +65,7 @@ protected void deserializeOutputDocument(GenerationContext generationContext,

@Override
public ShapeId getProtocol() {
return null;
return Rpcv2CborTrait.ID;
}

@Override
Expand Down

0 comments on commit 8b4ea40

Please sign in to comment.