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.
Issue
We currently have a
LocalDate
field with theLocalDateSerializer
. Now if we useJson
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
orencodeLong
.Proposal
Only check the avro encoder/decoder if the serializer need it.