ch-robinson / dotnet-avro

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

Generate safe names for record schemas created from generic types #187

Closed dstelljes closed 2 years ago

dstelljes commented 2 years ago

Previously, building a schema for a generic type would fail with an exception like the following:

Chr.Avro.Abstract.InvalidNameException: "Chr.Avro.Fixtures`1" is not a valid Avro name.

This change sanitizes those names and also enables the name/namespace derivation to be overridden.