julianpeeters / avrohugger

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

Standard format should not generate Java enums that depend on apache avro #81

Closed julianpeeters closed 6 years ago

julianpeeters commented 6 years ago

example: https://github.com/julianpeeters/avrohugger/blob/master/avrohugger-core/src/test/expected/standard/other/ns/java/Suit.java

Question: How to write java (treehugger only writes Scala, and avro generates enums compatible with specific records).

Answer: a) strip avro info from avro generated enum string b) generate the enum string manually c) ???

mariussoutier commented 6 years ago

I didn't realize that enums are generated via Avro - I thought you'd just write it out using treehugger.

julianpeeters commented 6 years ago

Alrighty, a fix should be syncing up with Maven Central shortly, in avrohugger version 1.0.0-RC3 and sbt-avrohugger version 2.0.0-RC3

mariussoutier commented 6 years ago

Thank you so much!