avro icon indicating copy to clipboard operation
avro copied to clipboard

go2avro: possibility to specify the namespace?

Open sneko opened this issue 5 years ago • 2 comments

Hi @rogpeppe ,

I'm using go2avro but I'm unable to specify a namespace automatically.

Since the program is for 1 type at a time, would be interesting to allow specifying the generated Avro namespace.

Thank you,

sneko avatar Jul 31 '20 14:07 sneko

Yes, that's a reasonable idea. Feel free to submit a PR :)

As a workaround, it should be easy to add the namespace after running go2avro by editing the generated schema.

rogpeppe avatar Aug 01 '20 08:08 rogpeppe

Yeah that's what I did, patching the JSON after generation :)

sneko avatar Aug 01 '20 08:08 sneko