We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897ba8f commit 8cf7f35Copy full SHA for 8cf7f35
modules/core/shared/src/main/scala/codegen.scala
@@ -445,7 +445,7 @@ def schemasCode(
445
val enumType =
446
if jsonCodec == JsonCodec.ZioJson then SchemaType.EnumType.Literal
447
else SchemaType.EnumType.Nominal(s"$scalaName.${toScalaTypeName(n)}")
448
- s"${toComment(t.withTypeDescription)} $n: ${
+ s"${toComment(t.withTypeDescription)} ${toScalaName(n)}: ${
449
(if (t.optional) s"${t.scalaType(arrType, enumType)} = None" else t.scalaType(arrType, enumType))
450
}"
451
}
0 commit comments