julianpeeters / avrohugger

Generate Scala case class definitions from Avro schemas
Apache License 2.0
202 stars 120 forks source link

Explicitly referenced types from other namespaces inside UNION types aren't imported #56

Closed mcoffin closed 7 years ago

mcoffin commented 7 years ago

getRecordSchemas fails to account for the possible presence of types from another namespace mentioned inside UNION types, meaning that those types will never be imported at the end of the day.

julianpeeters commented 7 years ago

Thanks for drilling into this. I'm happy to merge a PR if you're working on a fix, otherwise I expect ~1-2 weeks for me (tho I hope sooner).

mcoffin commented 7 years ago

I'm working on a PR but my fix doesn't quite work, I'll investigate and hopefully finish it up tonight.