avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
188 stars 36 forks source link

Set @AvroEnumDefault directly to the enum value instead of the class #200

Open Chuckame opened 2 months ago

Chuckame commented 2 months ago

Before:

    @Serializable
    @AvroEnumDefault("UNKNOWN")
    private enum class Enum {
        UNKNOWN,
        A,
        B,
    }

After:

    @Serializable
    private enum class Enum {
        @AvroEnumDefault
        UNKNOWN,
        A,
        B,
    }