Strech / avrora

A convenient Elixir library to work with Avro messages, schemas and Confluent® Schema Registry
https://hexdocs.pm/avrora
MIT License
98 stars 33 forks source link

Allow 3 named types to be used as root schemas #80

Closed Strech closed 3 years ago

Strech commented 3 years ago

https://avro.apache.org/docs/current/spec.html#names

Record, enums and fixed are named types. Each has a fullname that is composed of two parts; a name and a namespace. Equality of names is defined on the fullname.

Currently, Encoder (and Codes.<...>) have the guards for encoding to be just map() which is wrong for Enum and Fixed.