avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
194 stars 37 forks source link

Support of a fallback default for Enum types #91

Closed thake closed 3 years ago

thake commented 3 years ago

Implement support for Enum type specific "fallback defaults" that can be used to support schema evolution. If a reader does not recognize the enum value in the avro message, it will fallback to the enum default. This is not to be mistaken with the default value that can be specified for fields. See https://issues.apache.org/jira/browse/AVRO-1340 and https://avro.apache.org/docs/current/spec.html#Enums for more details.

thake commented 3 years ago

Implemented with #90 by @kossi