Skip to content

Commit

Permalink
FIX: remove special quotation marks from filename generation. (OpenAP…
Browse files Browse the repository at this point in the history
…ITools#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
  • Loading branch information
smasala authored and wing328 committed Oct 4, 2018
1 parent e3794d8 commit 1a4f6c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4702,5 +4702,6 @@ private void setParameterNullable(CodegenParameter parameter, CodegenProperty pr
*/
public void postProcessFile(File file, String fileType) {
LOGGER.debug("Post processing file {} ({})", file, fileType);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public String toApiImport(String name) {

@Override
public String toModelFilename(String name) {
return this.convertUsingFileNamingConvention(name) + modelFileSuffix;
return this.sanitizeName(this.convertUsingFileNamingConvention(name) + modelFileSuffix);
}

@Override
Expand Down

0 comments on commit 1a4f6c6

Please sign in to comment.