diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt index 6686aa67c34..a25867c8d0b 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt @@ -193,6 +193,16 @@ extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshall val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift") var expected = """ extension EventStreamTestClient: EventStreamTestClientProtocol { + /// This operation is cool. + /// + /// - Parameter TestStreamOpInput : [no documentation found] + /// + /// - Returns: `TestStreamOpOutputResponse` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `SomeError` : You don't have permission. public func testStreamOp(input: TestStreamOpInput) async throws -> TestStreamOpOutputResponse { let context = ClientRuntime.HttpContextBuilder() diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt index 094674fcaa1..a77a673458e 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt @@ -22,6 +22,11 @@ class AWSQueryOperationStackTest { val expectedContents = """ extension QueryProtocolClient: QueryProtocolClientProtocol { + /// This is a very cool operation. + /// + /// - Parameter NoInputAndOutputInput : [no documentation found] + /// + /// - Returns: `NoInputAndOutputOutputResponse` : [no documentation found] public func noInputAndOutput(input: NoInputAndOutputInput) async throws -> NoInputAndOutputOutputResponse { let context = ClientRuntime.HttpContextBuilder() diff --git a/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/awsquery/query-empty-input-output.smithy b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/awsquery/query-empty-input-output.smithy index b59dcf51375..b07f2f43b99 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/awsquery/query-empty-input-output.smithy +++ b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/awsquery/query-empty-input-output.smithy @@ -17,6 +17,7 @@ service AwsQuery { ] } +@documentation("This is a very cool operation.") operation NoInputAndOutput { input: NoInputAndOutputInput, output: NoInputAndOutputOutput diff --git a/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy index 7f467fe64a2..c153874b5c0 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy +++ b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy @@ -9,6 +9,7 @@ use aws.auth#sigv4 @service(sdkId: "EventStreamTest") service TestService { version: "123", operations: [TestStreamOp] } +@documentation("This operation is cool.") @http(method: "POST", uri: "/test") operation TestStreamOp { input: TestStreamInputOutput, @@ -22,6 +23,7 @@ structure TestStreamInputOutput { value: TestStream } +@documentation("You don't have permission.") @error("client") structure SomeError { Message: String,