Closed k7i3 closed 5 months ago
Hey! Is there a way to have the SCHEMA$ field not only in the companion object but also within the case class itself? I've tried to experiment with:
Compile / avroScalaSpecificCustomTypes := avrohugger.format.SpecificRecord.defaultTypes.copy( record = avrohugger.types.ScalaCaseClassWithSchema // ScalaCaseClass )
and it looks like that for specific records results are the same with both options 🤷♂️
Is there a way to have the SCHEMA$ field not only in the companion object but also within the case class itself?
no, there is not
Hey! Is there a way to have the SCHEMA$ field not only in the companion object but also within the case class itself? I've tried to experiment with:
Compile / avroScalaSpecificCustomTypes := avrohugger.format.SpecificRecord.defaultTypes.copy( record = avrohugger.types.ScalaCaseClassWithSchema // ScalaCaseClass )
and it looks like that for specific records results are the same with both options 🤷♂️