-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: generate enums #428
Comments
Can you give an example of what you would expect it to generate? |
hi @nrwiersma thanks for prompt reply So with gogen-avro any schema with an enum is gonna be generated like so:
The approach taken to generate the enum is not important to me. It could be like the example above or a group of string constants. The important thing is to have access to the values in the generated code without requiring me to search through the Avro schema. Thanks Eduardo |
hi @nrwiersma I'm happy to-do this work if it's ok I just need some guidelines for what do we want |
Hey. You are welcome to take a crack at it. Your proposed typed enum is good with me, but you need to consider that using the name directly is likely to cause conflicts, so making it unique is going to be the challenge. |
Hi,
I've noticed that the enums are not being generated in the schema. Is it possible to enable the generation of enums?
Thank you
The text was updated successfully, but these errors were encountered: