Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Support enums #24

Open
julianpeeters opened this issue Jul 20, 2015 · 3 comments
Open

Support enums #24

julianpeeters opened this issue Jul 20, 2015 · 3 comments

Comments

@julianpeeters
Copy link
Owner

Avro's SpecificData requires a Java enum. Is it even possible to annotate and expand top-level Java definitions?

@ppearcy
Copy link

ppearcy commented Jul 27, 2015

+1... Trying to decide now if I want case classes/no enums or java classes w/ enums and it is a tough choice.

@julianpeeters
Copy link
Owner Author

You might like to check out avrohugger in the meantime.

@aakoshh
Copy link
Contributor

aakoshh commented Mar 2, 2016

Just so we can specify enums in the Avro schemas to avoid as many mistakes as possible I tried mapping enums to strings. It can't handle optional values (union with null would require proper values I think), but otherwise seems to work.

hellosoda@950536b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants