ch-robinson / dotnet-avro

An Avro implementation for .NET
https://engineering.chrobinson.com/dotnet-avro/
MIT License
134 stars 49 forks source link

`[EnumMember]` value should be used when serializing enum types to `"string"` #214

Closed dstelljes closed 2 years ago

dstelljes commented 2 years ago

When building a schema for an enum type, EnumMemberAttribute.Value can be used to override the generated enum symbols. The serde builders should also take this annotation into account when mapping enum types to "string" schemas.

cc @bentdan @fordjas