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
This commit is contained in:
Steven Masala 2018-10-04 17:52:00 +02:00 committed by William Cheng
parent 55f26d31d3
commit 3e3b03f93b
2 changed files with 3 additions and 2 deletions

View File

@ -4702,5 +4702,6 @@ public class DefaultCodegen implements CodegenConfig {
*/
public void postProcessFile(File file, String fileType) {
LOGGER.debug("Post processing file {} ({})", file, fileType);
}
}
}

View File

@ -472,7 +472,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
@Override
public String toModelFilename(String name) {
return this.convertUsingFileNamingConvention(name) + modelFileSuffix;
return this.sanitizeName(this.convertUsingFileNamingConvention(name) + modelFileSuffix);
}
@Override