diff --git a/Sources/SmithyRetriesAPI/RetryStrategyOptions.swift b/Sources/SmithyRetriesAPI/RetryStrategyOptions.swift index 4562cdda6..599ebe96a 100644 --- a/Sources/SmithyRetriesAPI/RetryStrategyOptions.swift +++ b/Sources/SmithyRetriesAPI/RetryStrategyOptions.swift @@ -45,7 +45,7 @@ public struct RetryStrategyOptions: Sendable { /// Creates a new set of retry strategy options /// - Parameters: - /// - backoffStrategy: Determines the delay time before retrying. Defaults to exponential backoff with a max limit. + /// - backoffStrategy: Determines the delay time before retrying. For default behavior, use `ExponentialBackoffStrategy()`. /// - maxRetriesBase: The number of times to retry the initial request. Defaults to 2. /// - availableCapacity: The number of available tokens in a retry quota. Defaults to 500. /// - maxCapacity: The max number of tokens in a retry quota. Defaults to 500. diff --git a/smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/member/MemberShapeDecodeGenerator.kt b/smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/member/MemberShapeDecodeGenerator.kt index c758c9cee..755db8473 100644 --- a/smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/member/MemberShapeDecodeGenerator.kt +++ b/smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/member/MemberShapeDecodeGenerator.kt @@ -164,7 +164,8 @@ open class MemberShapeDecodeGenerator( // If member is required but there isn't a default value, use zero-equivalents for error correction if (requiredTrait != null && defaultTrait == null) { return when (targetShape) { - is EnumShape, is IntEnumShape -> " ?? .sdkUnknown(\"\")" + is EnumShape -> " ?? .sdkUnknown(\"\")" + is IntEnumShape -> " ?? .sdkUnknown(0)" is StringShape -> { // Enum trait is deprecated but many services still use it in their models if (targetShape.hasTrait()) {