Refactor JsonSchema2POJO To Be Extendable And Customizable
Hey,
I've been needing to heavily customize jsonschema2pojo for a project I'm working on, and I've be frustrated with poorly extendable out-of-the-box "Rule" classes, leaving me to copy methods from these classes into my customization rules and hacking access to all of the private fields in the original rule classes. It makes is extremely janky to customize the tool as intended.
A lot of it can be fixed just by adjusting the access from private to protected, or by accessing components with a proper protected getter in the base rule code. Other places need to make much more use of methods instead of huge blocks of code that cannot be adjusted at a fine grain.
I'd be happy to provide some improvements in a PR, if desired.
Otherwise great tool, thanks!
Source: joelittlejohn/jsonschema2pojo