Skip to content

Commit 1336afb

Browse files
committed
Fix enums
1 parent ffa8c50 commit 1336afb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/smoketests/SmokeTestsRunnerGenerator.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import software.amazon.smithy.kotlin.codegen.rendering.smoketests.SmokeTestsRunn
1717
import software.amazon.smithy.kotlin.codegen.rendering.util.format
1818
import software.amazon.smithy.kotlin.codegen.utils.dq
1919
import software.amazon.smithy.kotlin.codegen.utils.toCamelCase
20+
import software.amazon.smithy.kotlin.codegen.utils.toPascalCase
2021
import software.amazon.smithy.kotlin.codegen.utils.topDownOperations
2122
import software.amazon.smithy.model.node.*
2223
import software.amazon.smithy.model.shapes.*
@@ -212,7 +213,7 @@ class SmokeTestsRunnerGenerator(
212213
// String enum
213214
node is StringNode && shape.isStringEnumShape -> {
214215
val enumSymbol = symbolProvider.toSymbol(shape)
215-
val enumValue = node.value
216+
val enumValue = node.value.toPascalCase()
216217
writer.write("#T.#L", enumSymbol, enumValue)
217218
}
218219
// Int enum

0 commit comments

Comments
 (0)