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.avsc
schema:and
b.avsc
schema:Doesn't work - when
avro-ts a.avsc b.avsc
is executed, the resultingb.avsc.ts
file 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 howavsc
package handles this.