flavray / avro-rs

Avro client library implementation in Rust
MIT License
169 stars 95 forks source link

fix-for-reusing-enum-references #118

Closed ajayrathore closed 4 years ago

ajayrathore commented 4 years ago

Hi,

I fixed the issue raised by me earlier, the fix is to be able to process following schema type

{
  "type": "record",
  "name": "mymsg",
  "namespace": "myns",
  "fields": [
    {
      "name": "myid",
      "type": "int"
    },
    {
      "name": "c1",
      "type": {
        "type": "enum",
        "name": "myflag",
        "symbols": [
          "A",
          "B",
          "C"
        ]
      }
    },
    {
      "name": "c2",
      "type": "myflag"
    }
  ]
}
poros commented 4 years ago

This is a sub-case of what PRs like #53 and #99 tried to implement. I'd rather implement the whole thing than add a very partial "patch" like this one, sorry. But thanks for being so pro-active and for contributing! :)

ajayrathore commented 4 years ago

That's fine, I needed this particular fix urgently for a project I am working on, I will keep using my fix locally and take your changes once released.

Thanks