score:2

you can use another project avro4s (disclaimer: i wrote this), to generate the schemas at compile time rather than runtime, and any type tag issues you have should go away (as the compiler has access to more information that what is present at runtime).

very simple to use,

case class simplescalaavroobject(version: int, name: string)
// this schema is of type org.apache.avro.schema
val schema = avroschema[simplescalaavroobject]

Related Query

More Query from same tag