Unverified Commit 2f29209c authored by Landon James's avatar Landon James Committed by GitHub
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: default avatarysaito1001 <awsaito@amazon.com>
parent da741dca
Loading
Loading
Loading
Loading
+4 −16
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.Broke
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.FailingTest
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ProtocolSupport
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ProtocolTestGenerator
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.AWS_JSON_10
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.REST_JSON
import software.amazon.smithy.rust.codegen.core.smithy.generators.protocol.ServiceShapeId.RPC_V2_CBOR
@@ -84,20 +83,7 @@ class ClientProtocolTestGenerator(
            )

        private val BrokenTests:
            Set<BrokenTest> =
            setOf(
                BrokenTest.ResponseTest(
                    ServiceShapeId.REST_JSON,
                    "RestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse",
                    howToFixItFn = ::fixRestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse,
                    inAtLeast = setOf("1.50.0"),
                    trackedIn =
                        setOf(
                            // TODO(https://github.com/smithy-lang/smithy/pull/2341)
                            "https://github.com/smithy-lang/smithy/pull/2341",
                        ),
                ),
            )
            Set<BrokenTest> = setOf()

        private fun fixRestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse(
            testCase: TestCase.ResponseTest,
@@ -296,7 +282,9 @@ class ClientProtocolTestGenerator(
            "Operation" to codegenContext.symbolProvider.toSymbol(operationShape),
            "RuntimePlugin" to RT.runtimePlugin(rc),
            "SdkBody" to RT.sdkBody(rc),
            "SharedResponseDeserializer" to RT.smithyRuntimeApiClient(rc).resolve("client::ser_de::SharedResponseDeserializer"),
            "SharedResponseDeserializer" to
                RT.smithyRuntimeApiClient(rc)
                    .resolve("client::ser_de::SharedResponseDeserializer"),
        )
        if (expectedShape.hasTrait<ErrorTrait>()) {
            val errorSymbol = codegenContext.symbolProvider.symbolForOperationError(operationShape)
+1 −9
Original line number Diff line number Diff line
@@ -2,31 +2,23 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

# Rust MSRV (entered into the generated README)
rust.msrv=1.78.0

# To enable debug, swap out the two lines below.
# When changing this value, be sure to run `./gradlew --stop` to kill the Gradle daemon.
# org.gradle.jvmargs=-Xmx1024M -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:5006
org.gradle.jvmargs=-Xmx1024M

# Version number to use for the generated stable runtime crates
smithy.rs.runtime.crate.stable.version=1.1.7

# Version number to use for the generated unstable runtime crates
smithy.rs.runtime.crate.unstable.version=0.60.6

kotlin.code.style=official

# codegen
smithyGradlePluginVersion=0.9.0
smithyVersion=1.50.0
smithyVersion=1.51.0
allowLocalDeps=false

# kotlin
kotlinVersion=1.9.20

# testing/utility
ktlintVersion=1.0.1
kotestVersion=5.8.0