mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
leave name untouch if using original
This commit is contained in:
parent
38d189b159
commit
ed985b2e97
@ -521,6 +521,11 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
|||||||
return parameterNameMapping.get(name);
|
return parameterNameMapping.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do nothing if naming scheme is original (assuming parameter name mapping isn't set)
|
||||||
|
if (getParamNaming() == PARAM_NAMING_TYPE.original) {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
name = sanitizeName(name, "[^\\w$]");
|
name = sanitizeName(name, "[^\\w$]");
|
||||||
|
|
||||||
if ("_".equals(name)) {
|
if ("_".equals(name)) {
|
||||||
@ -540,6 +545,11 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
|||||||
return nameMapping.get(name);
|
return nameMapping.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do nothing if naming scheme is original (assuming property name mapping isn't set)
|
||||||
|
if (getModelPropertyNaming() == MODEL_PROPERTY_NAMING_TYPE.original) {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
name = sanitizeName(name, "[^\\w$]");
|
name = sanitizeName(name, "[^\\w$]");
|
||||||
|
|
||||||
if ("_".equals(name)) {
|
if ("_".equals(name)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user