No support for named type references
Closed this issue · 2 comments
jchia commented
The following schema parses fine with Python Avro but in avro-rs, Schema::parse_str()
rejects it with Error: ParsePrimitive("Dec")
:
{
"type": "record",
"name": "foo",
"fields": [
{
"name": "x",
"type": {
"type": "record",
"name": "Dec",
"fields": [
{
"name": "base",
"type": "int"
},
{
"name": "exp",
"type": "int"
}
]
}
},
{
"name": "y",
"type": "Dec"
}
]
}
The part of the Avro spec describing references to named types is here: https://avro.apache.org/docs/current/spec.html#names
martin-g commented
Please use the successor of this project: https://github.com/apache/avro/tree/master/lang/rust
martin-g commented
See #99 (comment)