test("Sample case class testing") {
case class TestRecord(intField: Int, stringField: String, instant: Instant, doubleArray: Array[java.lang.Double])
val schema = AvroSchema[TestRecord]
println(schema.toString(true))
}
if change java.lang.Double to Double it works
Otherwise This generate error could not find implicit value for parameter schemaFor: com.sksamuel.avro4s.SchemaFor[TestRecord]
val schema = AvroSchema[TestRecord]
if I add
implicit lazy val schemaFor: SchemaFor[TestRecord] = SchemaFor[TestRecord]
if change java.lang.Double to Double it works
if I add
implicit lazy val schemaFor: SchemaFor[TestRecord] = SchemaFor[TestRecord]
This ends with
using avro4s 4.x version.