diff --git a/Sources/AWSLambdaRuntime/Lambda+Codable.swift b/Sources/AWSLambdaRuntime/Lambda+Codable.swift index a77c0542..abc8728b 100644 --- a/Sources/AWSLambdaRuntime/Lambda+Codable.swift +++ b/Sources/AWSLambdaRuntime/Lambda+Codable.swift @@ -116,9 +116,9 @@ public struct LambdaCodableAdapter< } /// A ``StreamingLambdaHandler/handle(_:responseWriter:context:)`` wrapper. - /// - Parameters: - /// - event: The received event. - /// - outputWriter: The writer to write the computed response to. + /// - Parameters: + /// - request: The received event. + /// - responseWriter: The writer to write the computed response to. /// - context: The ``LambdaContext`` containing the invocation's metadata. @inlinable public mutating func handle( diff --git a/Sources/AWSLambdaRuntime/LambdaHandlers.swift b/Sources/AWSLambdaRuntime/LambdaHandlers.swift index 82a6eef3..d6e0b373 100644 --- a/Sources/AWSLambdaRuntime/LambdaHandlers.swift +++ b/Sources/AWSLambdaRuntime/LambdaHandlers.swift @@ -67,7 +67,7 @@ public protocol LambdaResponseStreamWriter { public protocol LambdaHandler { /// Generic input type. /// The body of the request sent to Lambda will be decoded into this type for the handler to consume. - associatedtype Event: Decodable + associatedtype Event /// Generic output type. /// This is the return type of the ``LambdaHandler/handle(_:context:)`` function. associatedtype Output @@ -89,7 +89,7 @@ public protocol LambdaHandler { public protocol LambdaWithBackgroundProcessingHandler { /// Generic input type. /// The body of the request sent to Lambda will be decoded into this type for the handler to consume. - associatedtype Event: Decodable + associatedtype Event /// Generic output type. /// This is the type that the `handle` function will send through the ``LambdaResponseWriter``. associatedtype Output @@ -183,9 +183,10 @@ extension LambdaRuntime { } /// Initialize an instance with a ``LambdaHandler`` defined in the form of a closure **with a non-`Void` return type**, an encoder, and a decoder. - /// - Parameter body: The handler in the form of a closure. - /// - Parameter encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`. - /// - Parameter decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type. + /// - Parameters: + /// - encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`. + /// - decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type. + /// - body: The handler in the form of a closure. public convenience init< Event: Decodable, Output: Encodable,