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
The default AvroScalaTypes union value is OptionEitherShapelessCoproduct, and when the schema has a union with only one type (["long"] for instance) the code generated is Long (in standard mode) and the union notion is lost. It creates an inconsistency with avro4s schema inference.
The default
AvroScalaTypes
union value isOptionEitherShapelessCoproduct
, and when the schema has a union with only one type (["long"]
for instance) the code generated isLong
(in standard mode) and the union notion is lost. It creates an inconsistency with avro4s schema inference.An example:
Avro schema
Generated case class (the union type is lost)
Expected generated code (at least one possibility)
The text was updated successfully, but these errors were encountered: