For a Zed type containing two identical records (e.g, {a:{},b:{}})
zavro.EncodeSchema returns a schema containing two records with the same
name, which is something schema registries don't allow. Change
EncodeSchema to use avro.RecursiveSchema for any Zed record type
previously encountered so that subsequent appearances of a record type
become references (rather than duplicates) in the returned schema.
For a Zed type containing two identical records (e.g, {a:{},b:{}}) zavro.EncodeSchema returns a schema containing two records with the same name, which is something schema registries don't allow. Change EncodeSchema to use avro.RecursiveSchema for any Zed record type previously encountered so that subsequent appearances of a record type become references (rather than duplicates) in the returned schema.