elodina / go-avro

Apache Avro for Golang
http://elodina.github.io/go-avro/
Apache License 2.0
129 stars 55 forks source link

Codegen - Generate schema dependent record #83

Open AlbinOS opened 8 years ago

AlbinOS commented 8 years ago

Hi there,

I'm trying to generate code with Codegen using two schemas.

In device.avsc, I have a record of type Device.

In status.avsc, I have a record of type Status that have a field of type Device.

I tried to first generate device.avsc and then status.avsc and to use both schema to generate one go file but Codegen says that the type Device is undefined.

Is there a way to make that happen ? If not, do you have ideas to modify Codegen in order to make that possible ? I'm willing to help.

Thanks and regards, Albin.

wpr7280 commented 5 years ago

I have same issue