mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 19:46:08 +00:00
Compare commits
1 Commits
typescript
...
ts-origina
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed985b2e97 |
@@ -521,6 +521,11 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
||||
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$]");
|
||||
|
||||
if ("_".equals(name)) {
|
||||
@@ -540,6 +545,11 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
||||
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$]");
|
||||
|
||||
if ("_".equals(name)) {
|
||||
|
||||
Reference in New Issue
Block a user