You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" org.apache.avro.AvroRuntimeException: Duplicate in union:Repr.Test
at org.apache.avro.Schema$UnionSchema.<init>(Schema.java:1238)
at org.apache.avro.Schema.createUnion(Schema.java:251)
at org.apache.avro.Schema.createUnion(Schema.java:256)
at com.sksamuel.avro4s.avroutils.SchemaHelper$.createSafeUnion(SchemaHelper.scala:166)
at com.sksamuel.avro4s.schemas.TypeUnions$.schema(unions.scala:26)
at com.sksamuel.avro4s.schemas.MagnoliaDerivedSchemas.split(magnolia.scala:20)
at com.sksamuel.avro4s.schemas.MagnoliaDerivedSchemas.split$(magnolia.scala:10)
at com.sksamuel.avro4s.SchemaFor$.split(SchemaFor.scala:55)
at Repr$.gen(repr.scala:12)
at Main$.main(repr.scala:18)
at Main.main(repr.scala)
When replacing scala version with 2.13, and using 4.1.1 version of the library, the schema is successfully generated:
Hello! Thank you for maintaining this library. I found the following issue when trying to migrate a project to scala 3.
Minimization with scala-cli:
causes (on runtime):
When replacing scala version with 2.13, and using 4.1.1 version of the library, the schema is successfully generated:
The text was updated successfully, but these errors were encountered: