Skip to content

Commit 2f29209

Browse files
Updating Smithy to 1.51.0 (#3847)
## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here --> Updating Smithy to 1.51.0 to get the updated `httpChecksum` trait changes ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: ysaito1001 <[email protected]>
1 parent da741dc commit 2f29209

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ClientProtocolTestGenerator.kt

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.Broke
2828
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.FailingTest
2929
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ProtocolSupport
3030
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ProtocolTestGenerator
31-
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId
3231
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.AWS_JSON_10
3332
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.REST_JSON
3433
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.RPC_V2_CBOR
@@ -84,20 +83,7 @@ class ClientProtocolTestGenerator(
8483
)
8584

8685
private val BrokenTests:
87-
Set<BrokenTest> =
88-
setOf(
89-
BrokenTest.ResponseTest(
90-
ServiceShapeId.REST_JSON,
91-
"RestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse",
92-
howToFixItFn = ::fixRestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse,
93-
inAtLeast = setOf("1.50.0"),
94-
trackedIn =
95-
setOf(
96-
// TODO(https://github.com/smithy-lang/smithy/pull/2341)
97-
"https://github.com/smithy-lang/smithy/pull/2341",
98-
),
99-
),
100-
)
86+
Set<BrokenTest> = setOf()
10187

10288
private fun fixRestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse(
10389
testCase: TestCase.ResponseTest,
@@ -296,7 +282,9 @@ class ClientProtocolTestGenerator(
296282
"Operation" to codegenContext.symbolProvider.toSymbol(operationShape),
297283
"RuntimePlugin" to RT.runtimePlugin(rc),
298284
"SdkBody" to RT.sdkBody(rc),
299-
"SharedResponseDeserializer" to RT.smithyRuntimeApiClient(rc).resolve("client::ser_de::SharedResponseDeserializer"),
285+
"SharedResponseDeserializer" to
286+
RT.smithyRuntimeApiClient(rc)
287+
.resolve("client::ser_de::SharedResponseDeserializer"),
300288
)
301289
if (expectedShape.hasTrait<ErrorTrait>()) {
302290
val errorSymbol = codegenContext.symbolProvider.symbolForOperationError(operationShape)

gradle.properties

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,23 @@
22
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
65
# Rust MSRV (entered into the generated README)
76
rust.msrv=1.78.0
8-
97
# To enable debug, swap out the two lines below.
108
# When changing this value, be sure to run `./gradlew --stop` to kill the Gradle daemon.
119
# org.gradle.jvmargs=-Xmx1024M -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:5006
1210
org.gradle.jvmargs=-Xmx1024M
13-
1411
# Version number to use for the generated stable runtime crates
1512
smithy.rs.runtime.crate.stable.version=1.1.7
16-
1713
# Version number to use for the generated unstable runtime crates
1814
smithy.rs.runtime.crate.unstable.version=0.60.6
19-
2015
kotlin.code.style=official
21-
2216
# codegen
2317
smithyGradlePluginVersion=0.9.0
24-
smithyVersion=1.50.0
18+
smithyVersion=1.51.0
2519
allowLocalDeps=false
26-
2720
# kotlin
2821
kotlinVersion=1.9.20
29-
3022
# testing/utility
3123
ktlintVersion=1.0.1
3224
kotestVersion=5.8.0

0 commit comments

Comments
 (0)