klarna / erlavro

Avro support for Erlang/Elixir (http://avro.apache.org/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would be nice to have support for Avro IDL schema format (.avdl)

seriyps opened this issue · comments

Avro schemas can be defined in 2 formats: json and Avro IDL.
erlavro currently supports only JSON version.

Maybe it would worth to have support for avdl also?

Hi @seriyps we do not have plan to support it in the near future.

We use the IDL as well; it helps us with forward and backward compat checking as schemas advance forward. Currently with erlavro we just hit the schema-registry and pull the generated JSON out and use that to deserialize messages.

It works pretty well - but we do run into type issues like in #70 sometimes. The IDL generates JSON which maybe follows spec; we seem have the most trouble with the defaults around primitives.