-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move CBOR implementation to smithy-swift
- Loading branch information
Showing
19 changed files
with
57 additions
and
747 deletions.
There are no files selected for viewing
47 changes: 0 additions & 47 deletions
47
...time/Sources/AWSClientRuntime/Middlewares/RpcV2CborValidateResponseHeaderMiddleware.swift
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...Runtime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError+QueryCompatible.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
@_spi(SmithyReadWrite) import struct ClientRuntime.RpcV2CborError | ||
@_spi(SmithyReadWrite) import class SmithyCBOR.Reader | ||
import class SmithyHTTPAPI.HTTPResponse | ||
|
||
// support awsQueryCompatible trait | ||
extension RpcV2CborError { | ||
@_spi(SmithyReadWrite) | ||
public static func makeQueryCompatibleError( | ||
httpResponse: HTTPResponse, | ||
responseReader: Reader, | ||
noErrorWrapping: Bool, | ||
errorDetails: String? | ||
) throws -> RpcV2CborError { | ||
let errorCode = try AwsQueryCompatibleErrorDetails.parse(errorDetails).code | ||
return try RpcV2CborError( | ||
httpResponse: httpResponse, | ||
responseReader: responseReader, | ||
noErrorWrapping: noErrorWrapping, | ||
code: errorCode | ||
) | ||
} | ||
} |
65 changes: 0 additions & 65 deletions
65
...s/Core/AWSClientRuntime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 0 additions & 189 deletions
189
...codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...otlin/software/amazon/smithy/aws/swift/codegen/customization/AwsQueryModeCustomization.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...are/amazon/smithy/aws/swift/codegen/customization/apigateway/ApiGatewayAddAcceptHeader.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.