mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 20:20:53 +00:00
Parameters names where camelized with first letter not lower
This commit is contained in:
parent
ef3811390f
commit
6c4765fd00
@ -230,7 +230,7 @@ public class AkkaScalaClientCodegen extends DefaultCodegen implements CodegenCon
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String formatIdentifier(String name, boolean capitalized) {
|
private String formatIdentifier(String name, boolean capitalized) {
|
||||||
String identifier = camelize(name);
|
String identifier = camelize(name, true);
|
||||||
if (capitalized)
|
if (capitalized)
|
||||||
identifier = StringUtils.capitalize(identifier);
|
identifier = StringUtils.capitalize(identifier);
|
||||||
if (identifier.matches("[a-zA-Z_$][\\w_$]+") && !reservedWords.contains(identifier))
|
if (identifier.matches("[a-zA-Z_$][\\w_$]+") && !reservedWords.contains(identifier))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user