at com.sksamuel.avro4k.schema.ClassSchemaFor.buildField(ClassSchemaFor.kt:70)
at com.sksamuel.avro4k.schema.ClassSchemaFor.dataClassSchema(ClassSchemaFor.kt:55)
at com.sksamuel.avro4k.schema.ClassSchemaFor.schema(ClassSchemaFor.kt:43)
at com.sksamuel.avro4k.schema.NullableSchemaFor.schema(SchemaFor.kt:123)
@geomagilles Thanks for reporting the issue. This is actually a duplicate of #37 which was incorrectly closed as "won't fix". Closing this issue as a duplicate.
For Example:
Can be serialized using Json:
But failed to be serialized using Avro
throws a stackoverflow of numerous: