mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 20:09:12 +00:00
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
This commit is contained in:
@@ -317,7 +317,7 @@ public class DefaultCodegen {
|
||||
}
|
||||
|
||||
public String snakeCase(String name) {
|
||||
return Character.toLowerCase(name.charAt(0)) + name.substring(1);
|
||||
return (name.length() > 0) ? (Character.toLowerCase(name.charAt(0)) + name.substring(1)) : "";
|
||||
}
|
||||
|
||||
public String initialCaps(String name) {
|
||||
|
||||
Reference in New Issue
Block a user