-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Implement javaEnums extension #1041
Implement javaEnums extension #1041
Conversation
…vaEnumNames provided.
…e custom EnumRule (by extending instead of replacing).
…r custom enum rules.
@joelittlejohn I have additionally changed some of the methods to protected to allow a custom EnumRule to be able to extend the rule in multiple different discrete ways instead of copy-n-pasting or reimplementing it all. For example in a custom EnumRule I would like to write for my project I would like to even override the Constructor that is generated and add additional fields to the enum. The actual use case is obscure so I am implementing it outside of this project. |
…ng functions protected as well.
@joelittlejohn can we get this pull request in? |
If you could add something to https://github.com/joelittlejohn/jsonschema2pojo/wiki/Reference#extensions that would be great 👍 |
I will put it on my todo list. |
Implement javaEnums extension to extend on what javaEnumNames provided.