forked from loafle/openapi-generator-original
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:
parent
55f26d31d3
commit
3e3b03f93b
@ -4703,4 +4703,5 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
public void postProcessFile(File file, String fileType) {
|
public void postProcessFile(File file, String fileType) {
|
||||||
LOGGER.debug("Post processing file {} ({})", file, fileType);
|
LOGGER.debug("Post processing file {} ({})", file, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -472,7 +472,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toModelFilename(String name) {
|
public String toModelFilename(String name) {
|
||||||
return this.convertUsingFileNamingConvention(name) + modelFileSuffix;
|
return this.sanitizeName(this.convertUsingFileNamingConvention(name) + modelFileSuffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user