nokia / Avro-Schema-Generator

Tool which generates Avro schemas and Java bindings from XML schemas.
Apache License 2.0
37 stars 26 forks source link

Avro IDL generation? #1

Open TonyApuzzo opened 11 years ago

TonyApuzzo commented 11 years ago

Hi,

I've been trying to use this project with a moderately complex XML Schema that has recursive elements (for example, A can-contain B and B can-contain A.) The current code (and .avsc) file format can't handle this. After working on it for a bit, I have come to the conclusion that it isn't trivial with base schema files since they require a fully-ordered non-cyclical dependency tree to compile. However, using the IDL, I've found it is possible to write a single protocol which contains self-referential records, since these are emitted with forward declarations.

Do you have plans to implement IDL code generation instead of Schema generation?

UnquietCode commented 11 years ago

Hi Tony. There were plans to switch to the IDL format (I even made a note) but I'm not sure I will have the time to implement this soon. Thankfully it's open source! Hopefully someone can step in and make the change.