It seems, that record field types are not properly nested with a record namespace. Namely having a.avsc schema:
{
"type": "enum",
"name": "A",
"namespace": "com.example",
"symbols": [
"foo",
"bar"
]
}
and b.avsc schema:
{
"type": "record",
"name": "B",
"namespace": "com.example",
"fields": [
{
"name": "a",
"type": "A"
}
]
}
Doesn't work - when avro-ts a.avsc b.avsc is executed, the resulting b.avsc.ts file has no import. If, however, "type": "A" is replaced with "type": "com.example.A", import shows up. This seems to be conflicting with Avro specification and also with how avsc package handles this.
It seems, that record field types are not properly nested with a record namespace. Namely having
a.avscschema:and
b.avscschema:Doesn't work - when
avro-ts a.avsc b.avscis executed, the resultingb.avsc.tsfile has noimport. If, however,"type": "A"is replaced with"type": "com.example.A", import shows up. This seems to be conflicting with Avro specification and also with howavscpackage handles this.