Skip to content

Commit 66849de

Browse files
authored
feat: add support for smithy.protocols#rpcv2Cbor protocol (#1336)
1 parent 96c752e commit 66849de

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "41bdd91a-a58d-47bc-b89d-0e5c334ea6f6",
3+
"type": "feature",
4+
"description": "Add support for `smithy.protocols#rpcv2Cbor` protocol",
5+
"issues": [
6+
"https://github.com/awslabs/aws-sdk-kotlin/issues/1302"
7+
]
8+
}

build-support/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies {
2222

2323
implementation(libs.smithy.model)
2424
implementation(libs.smithy.aws.traits)
25+
implementation(libs.smithy.protocol.traits)
2526
implementation(libs.kotlinx.serialization.json)
2627

2728
testImplementation(libs.junit.jupiter)

build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import software.amazon.smithy.aws.traits.protocols.Ec2QueryTrait
1111
import software.amazon.smithy.aws.traits.protocols.RestJson1Trait
1212
import software.amazon.smithy.aws.traits.protocols.RestXmlTrait
1313
import software.amazon.smithy.model.shapes.ServiceShape
14+
import software.amazon.smithy.protocol.traits.Rpcv2CborTrait
1415

1516
private const val DEPRECATED_SHAPES_CUTOFF_DATE: String = "2023-11-28"
1617

@@ -39,4 +40,5 @@ fun ServiceShape.protocolName(): String =
3940
AwsJson1_1Trait.ID,
4041
AwsQueryTrait.ID,
4142
Ec2QueryTrait.ID,
43+
Rpcv2CborTrait.ID,
4244
).first { hasTrait(it) }.name

gradle/libs.versions.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ coroutines-version = "1.7.3"
99
atomicfu-version = "0.23.1"
1010

1111
# smithy-kotlin codegen and runtime are versioned separately
12-
smithy-kotlin-runtime-version = "1.2.12"
13-
smithy-kotlin-codegen-version = "0.32.12"
12+
smithy-kotlin-runtime-version = "1.2.14"
13+
smithy-kotlin-codegen-version = "0.32.14"
1414

1515
# codegen
1616
smithy-version = "1.50.0"
@@ -71,6 +71,7 @@ smithy-kotlin-serde = { module = "aws.smithy.kotlin:serde", version.ref = "smith
7171
smithy-kotlin-serde-form-url = { module = "aws.smithy.kotlin:serde-form-url", version.ref = "smithy-kotlin-runtime-version" }
7272
smithy-kotlin-serde-json = { module = "aws.smithy.kotlin:serde-json", version.ref = "smithy-kotlin-runtime-version" }
7373
smithy-kotlin-serde-xml = { module = "aws.smithy.kotlin:serde-xml", version.ref = "smithy-kotlin-runtime-version" }
74+
smithy-kotlin-serde-cbor = { module = "aws.smithy.kotlin:serde-cbor", version.ref = "smithy-kotlin-runtime-version" }
7475
smithy-kotlin-smithy-client = { module = "aws.smithy.kotlin:smithy-client", version.ref = "smithy-kotlin-runtime-version" }
7576
smithy-kotlin-smithy-test = { module = "aws.smithy.kotlin:smithy-test", version.ref = "smithy-kotlin-runtime-version" }
7677
smithy-kotlin-telemetry-api = { module = "aws.smithy.kotlin:telemetry-api", version.ref = "smithy-kotlin-runtime-version" }
@@ -88,6 +89,7 @@ smithy-cli = { module = "software.amazon.smithy:smithy-cli", version.ref = "smit
8889
smithy-waiters = { module = "software.amazon.smithy:smithy-waiters", version.ref = "smithy-version" }
8990
smithy-aws-endpoints = { module = "software.amazon.smithy:smithy-aws-endpoints", version.ref = "smithy-version" }
9091
smithy-aws-traits = { module = "software.amazon.smithy:smithy-aws-traits", version.ref = "smithy-version" }
92+
smithy-protocol-traits = { module = "software.amazon.smithy:smithy-protocol-traits", version.ref = "smithy-version" }
9193
smithy-aws-protocol-tests = { module = "software.amazon.smithy:smithy-aws-protocol-tests", version.ref = "smithy-version" }
9294
smithy-aws-iam-traits = { module = "software.amazon.smithy:smithy-aws-iam-traits", version.ref = "smithy-version" }
9395
smithy-aws-cloudformation-traits = { module = "software.amazon.smithy:smithy-aws-cloudformation-traits", version.ref = "smithy-version" }

0 commit comments

Comments
 (0)