From e6c7db21d313549c3801130ecf237240934e08cc Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Mon, 28 Oct 2024 11:24:11 -0700 Subject: [PATCH] fix: Add missing delimiter for string array endpoint param in test codegen. --- .../amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt index 3ac0b4a420a..a394d32d4ba 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/EndpointTestGenerator.kt @@ -156,7 +156,7 @@ class EndpointTestGenerator( } is ArrayValue -> { - val castStmt = if (castToAnyHashable) " as [AnyHashable]$delimeter" else "" + val castStmt = if (castToAnyHashable) " as [AnyHashable]$delimeter" else delimeter writer.openBlock("[", "]$castStmt") { value.values.forEachIndexed { idx, item -> writer.call {