Skip to content

Commit 8cf7f35

Browse files
committed
missing scala name mapping
1 parent 897ba8f commit 8cf7f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/shared/src/main/scala/codegen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def schemasCode(
445445
val enumType =
446446
if jsonCodec == JsonCodec.ZioJson then SchemaType.EnumType.Literal
447447
else SchemaType.EnumType.Nominal(s"$scalaName.${toScalaTypeName(n)}")
448-
s"${toComment(t.withTypeDescription)} $n: ${
448+
s"${toComment(t.withTypeDescription)} ${toScalaName(n)}: ${
449449
(if (t.optional) s"${t.scalaType(arrType, enumType)} = None" else t.scalaType(arrType, enumType))
450450
}"
451451
}

0 commit comments

Comments
 (0)