avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
194 stars 37 forks source link

Fix #37 - Allow recursive schema #78

Closed geomagilles closed 3 years ago

geomagilles commented 3 years ago

I propose a simple implementation of recursive schema - the idea behind it is simply to make a class schema available in a "store" before setting fields. That way, if this class is used in fields, it will take directly the existing schema - avoiding a recursive calculation.

I've added tests also.

geomagilles commented 3 years ago

Thx @thake, it's better now I think

geomagilles commented 3 years ago

Added support for List (including array), Map and Pair 💯 !