Closed minionOfZuul closed 1 year ago
If you don't have an @Serializable annotated data class, you'll have to provide a custom serializer so that kotlinx.serialization knows how to serialize the provided instance.
Does this help you? Maybe I have got your question wrong. Maybe you can give some pseudo code of what you want to achieve.
I have a use case where I need to work strictly with GenericRecords - in other words, I have no data class from which to derive a serializer. I've combed through the docs and the API and I don't see a straightforward way to give Avro4k an instance and a schema and get back a GenericRecord. Is there such a thing?