Unverified Commit 76293585 authored by Harry Barber's avatar Harry Barber Committed by GitHub
Browse files

Switch links to Smithy v2 documentation (#2037)



## Motivation and Context

The latest documentation is Smithy v2. In most cases it's identical. As
far as I can tell, there are no links to items with breaking changes
between v1 and v2.

---------

Co-authored-by: default avatarHarry Barber <hlbarber@amazon.co.uk>
Co-authored-by: default avatarJohn DiSanti <jdisanti@amazon.com>
parent 96c1cd1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ private fun HttpChecksumTrait.checksumAlgorithmToStr(
}

// This generator was implemented based on this spec:
// https://smithy-lang.github.io/smithy/1.0/spec/aws/aws-core.html#http-request-checksums
// https://smithy.io/2.0/aws/aws-core.html#http-request-checksums
class HttpRequestChecksumCustomization(
    private val codegenContext: ClientCodegenContext,
    private val operationShape: OperationShape,
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ class HttpResponseChecksumDecorator : ClientCodegenDecorator {
}

// This generator was implemented based on this spec:
// https://awslabs.github.io/smithy/1.0/spec/aws/aws-core.html#http-request-checksums
// https://smithy.io/2.0/aws/aws-core.html#http-request-checksums
class HttpResponseChecksumCustomization(
    private val codegenContext: ClientCodegenContext,
    private val operationShape: OperationShape,
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ fun SymbolProvider.toOptional(
    }

/**
 * Services can rename their contained shapes. See https://awslabs.github.io/smithy/1.0/spec/core/model.html#service
 * Services can rename their contained shapes. See https://smithy.io/2.0/spec/service-types.html
 * specifically, `rename`
 */
fun Shape.contextName(serviceShape: ServiceShape?): String {
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import software.amazon.smithy.rust.codegen.core.util.outputShape
/**
 * This [HttpBindingResolver] implementation mostly delegates to the [HttpTraitHttpBindingResolver] class, since the
 * RestJson1 protocol can be almost entirely described by Smithy's HTTP binding traits
 * (https://awslabs.github.io/smithy/1.0/spec/core/http-traits.html).
 * (https://smithy.io/2.0/spec/http-bindings.html).
 * The only protocol-specific behavior that is truly custom is the response `Content-Type` header, which defaults to
 * `application/json` if not overridden.
 */
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ open class EventStreamMarshallerGenerator(
        }
    }

    // Event stream header types: https://awslabs.github.io/smithy/1.0/spec/core/stream-traits.html#eventheader-trait
    // Event stream header types: https://smithy.io/2.0/spec/streaming.html#eventheader-trait
    // Note: there are no floating point header types for Event Stream.
    private fun headerValue(
        inputName: String,
Loading