smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
79 stars 26 forks source link

fix: correctly codegen maps with enum keys #1052

Closed ianbotsf closed 6 months ago

ianbotsf commented 6 months ago

Issue \

1045

Description of changes

This change fixes the accidental generation of all map keys as strings when keys can also be string enums.

This change also adds a new flag to our KotlinSettings type used in smithy-build.json files called debug. When enabled, it will turn on stack frame emission in codegen which aids in codegen debug.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sonarcloud[bot] commented 6 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
24.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud