-
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
Allow schema title to be used as class name (new useTitleAsClassname config option) #908
Comments
This has been asked for before. Interesting that in your design you expect |
In my implementation I only use the title for sub-hierarchies and stick with the filename otherwise. Not a deal breaker for me in general. I would capitalize all first letters and strip spaces. Next illegal characters get replaced with underscore and that’s it. |
I am willing to contribute PRs for all my requests if there’s a chance for approval. |
Happy to accept a PR for this, as long as it is behind a configuration option, say, |
Each word in a title is capitalized and whitespaces stripped. Fixes jsonschema2pojo/joelittlejohngh-908
Just saw your comment now. If you prefer a boolean property I can change it. I implemented it as part of |
Each word in a title is capitalized and whitespaces stripped. Fixes jsonschema2pojo/joelittlejohngh-908
Each word in a title is capitalized and whitespaces stripped. Fixes jsonschema2pojo/joelittlejohngh-908
Thank you very much! It was fun working on this one. |
When having schemas where certain field names are repeated with different implementations the code currently generates unique class names such as
Image__1
, etc. I would like to have a configuration to use thetitle
as class name instead.So that
would result in
Thank you for your great library. I am using it successfully and really like the
RuleFactory
design.The text was updated successfully, but these errors were encountered: