-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Deprecated initialCaps #1821
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
Deprecated initialCaps #1821
Conversation
| @SuppressWarnings("static-method") | ||
| public String initialCaps(String name) { | ||
| return StringUtils.capitalize(name); | ||
| return camelize(name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelize removes underscores which may cause issues with the InlineModelResolver and other places where underscores are being introduced. in the cpp rest sdk client generator this causes the class names to be different than the file names (some method calls have used initialCaps and some have not) which causes import errors.
I will open a dedicated issue for this.
Regards,
Omer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please open a separate issue with a (minimal) spec to reproduce the issue.
|
#2003 could be related |
|
True, but I have another example with a generated inline response which shows the behavior - I'll attach it to the issue I need to open. |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,. Default:3.4.x,4.0.xmaster.Description of the PR
Replacing it with
camelizeand will completely remove it in 4.x releasecc @OpenAPITools/generator-core-team