-
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
List property called "status" has items with type "Statu" #695
Comments
There isn't really a workaround I'm afraid, other than renaming this field from We'll need to add a special case to the inflector so that it does not attempt to singularize this word: |
Hi @joelittlejohn thank you for the fast answer :) BTW: Thank you for this great tool :) |
Yes feel free to submit a PR. I think you can simply add the word to the 'irregular' list here: We don't need to ever pluralize anything so it doesn't matter that pluralizing 'status' would no longer become 'statuses'. I'm happy to create a release whenever you're ready. Please do install and test your other project against a local snapshot of this plugin though, we want to be sure that your PR change solves the problem. |
@joelittlejohn I've right know published a PR hope I did it the right way :) |
Thanks for reporting this Sebastien. I went a slightly different way with the fix in the end. There's now a specific singularization rule to fix this case, and this allows other similar cases to be unaffected. I'll release this shortly. |
Perfect ! Thank you very much Joe :) |
Hi there :)
I am trying to generate some classes with the online generator and for obvious reasons my class called "Status" is transformed to "Statu" is there a workaround ?
Input:
Output:
The text was updated successfully, but these errors were encountered: