avro-kotlin / avro4k

Avro format support for Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support using avro serializers outside of avro4k

Chuckame opened this issue · comments

Issue

We currently have a LocalDate field with the LocalDateSerializer. Now if we use Json or any other decoder/encoder, it fails as the serializer is only accepting an avro encoder/decoder.

But the serializer itself is not using the avro methods, but only kotlinx methods like encodeInt or encodeLong.

Proposal

Only check the avro encoder/decoder if the serializer need it.

Released in v2.0.0