Strech / avrora

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

Drifting Avrora.Storage behavior implementations #127

Open Strech opened 1 month ago

Strech commented 1 month ago

Somehow dialyzer misses that some storages accept types they are not supposed to.

Behavior for the value in put(key, value) defined value as an Avrora.Schema

https://github.com/Strech/avrora/blob/99e6942bb46d1d0f8fc32a7342bb07318daa78e4/lib/avrora/storage.ex#L9-L10

But here we are restricting it to binary

https://github.com/Strech/avrora/blob/99e6942bb46d1d0f8fc32a7342bb07318daa78e4/lib/avrora/storage/registry.ex#L72