julianpeeters / avrohugger

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

Naive support for top level union schema #128

Closed simonpetty closed 4 years ago

simonpetty commented 4 years ago

This is one for discussion more than anything as i'm new to all this.

I'm guessing this isn't all that would be needed to get top-level UNION types to be supported?

See: https://github.com/julianpeeters/avrohugger/issues/85

julianpeeters commented 4 years ago

Thanks @simonpetty ! Sorry to leave you hanging, I think you're right. I added a test and published your fix, available in avrohugger 1.0.0-RC21 (and sbt-avrohugger 2.0.0-RC21), up at Sonatype now, should be syncing with maven central soon.