macro classfromSchema extends Annotation with StaticAnnotation
Macro annotation for an Avro schema.
Generate case classes for an Avro schema. Note that schema must be a single string literal
of the JSON schema with optional .stripMargin at the end. For example:
Macro annotation for an Avro schema.
Generate case classes for an Avro schema. Note that
schemamust be a single string literal of the JSON schema with optional.stripMarginat the end. For example:@AvroType.fromSchema( """ |{ | "type": "record", | "namespace": "com.spotify.namespace", | "name": "RecordName", | "fields": [ | { "name": "boolF", "type": "boolean"}, | { "name": "intF", "type": "int"}, | { "name": "longF", "type": "long"}, | { "name": "floatF", "type": "float"}, | { "name": "doubleF", "type": "double"}, | { "name": "stringF", "type": "string"}, | { "name": "byteStringF", "type": "bytes"} | ] |} """.stripMargin) class MyRecordAlso generate a companion object with convenience methods.