Skip to content

Commit 3e3b03f

Browse files
smasalawing328
authored andcommitted
FIX: remove special quotation marks from filename generation. (#1157)
* remove left|right point double angle quotation marks * move to DefaultCodeGen and update TypeScriptAngularClientCodegen to reflect new clean function so that the filename AND imports are added correctly * rename to a more accurate name :) * shippable fixes * shippable javadoc fix * replaced cleanModelFilename with sanitzeName * remove DefaultCodegen changes
1 parent 55f26d3 commit 3e3b03f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4702,5 +4702,6 @@ private void setParameterNullable(CodegenParameter parameter, CodegenProperty pr
47024702
*/
47034703
public void postProcessFile(File file, String fileType) {
47044704
LOGGER.debug("Post processing file {} ({})", file, fileType);
4705-
}
4705+
}
4706+
47064707
}

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public String toApiImport(String name) {
472472

473473
@Override
474474
public String toModelFilename(String name) {
475-
return this.convertUsingFileNamingConvention(name) + modelFileSuffix;
475+
return this.sanitizeName(this.convertUsingFileNamingConvention(name) + modelFileSuffix);
476476
}
477477

478478
@Override

0 commit comments

Comments
 (0)