@Serializable
data class Foo(
val e: Char,
)
Avro.schema(Foo.serializer())
// or
Avro.schema(Char.serializer())
// -> Unsupported type kotlin.Char of CHAR
Proposal
Generates the corresponding schema as an int (replicates apache's avro behavior) and apply the char logical type.
This would generate the following schema:
Currently, this code produces an error:
Proposal
Generates the corresponding schema as an
int
(replicates apache's avro behavior) and apply thechar
logical type. This would generate the following schema: