ch-robinson / dotnet-avro

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

feat: added DateOnly type in code generator #298

Closed xontab closed 6 months ago

xontab commented 6 months ago

Added support to DateOnly data type when generating class if type in Avro is int and logical type in Avro is date.

The implementation is similar to the DateTime data type.

Chr.Avro already supports DateOnly schema generation - https://github.com/ch-robinson/dotnet-avro/blob/main/src/Chr.Avro/Abstract/DateSchemaBuilderCase.cs#L46-L49. This same logic is applied in this PR.