klarna / erlavro

Avro support for Erlang/Elixir (http://avro.apache.org/)
Apache License 2.0
131 stars 39 forks source link

Improve `@aliases` support #118

Closed seriyps closed 1 year ago

seriyps commented 1 year ago

With this change the is_compatible/2 will be able to say that the schema

{
    "type": "record",
    "name": "EventMeta",
    "fields": [
        {"name": "to_stay", "type": "string"},
        {"name": "new_name", "type": "string", "aliases": ["to_rename"]}
    ]
}

is backwards compatible with

{
    "type": "record",
    "name": "EventMeta",
    "fields": [
        {"name": "to_stay", "type": "string"},
        {"name": "to_rename", "type": "string"}
    ]
}