avro4k icon indicating copy to clipboard operation
avro4k copied to clipboard

Code generation from avro schema files

Open Chuckame opened this issue 9 months ago • 1 comments

the need

Currently, there is no up-to-date or maintained kotlin plug-in that generates kotlin code from an avro schema file.

This plug-in would generate kotlin source code compatible with avro4k and using all the built-in avro4k annotations and serializers. It also makes a new life for avro, especially when the famous davidmc24's plug-in stopped its support in décembre of 2023, and is now the ownership of apache 😅

how / questions

To be used with a configured instance of Avro, we could just generate code with @Contextual for all the non primitive fields. That way, the built-in serializers will be taken by default as they are already bundled with the default Avro instance.

There is still a challenge: how to discover the kotlin type behind a custom logical avro type?

Chuckame avatar May 18 '24 20:05 Chuckame