Removed tabs from TypeScriptClientCodegen

This commit is contained in:
Tino Fuhrmann 2018-10-28 13:51:15 +01:00
parent 4c11314a7b
commit 988df1f7a5

View File

@ -115,7 +115,7 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo
cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase")); cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase"));
cliOptions.add(new CliOption(CodegenConstants.SUPPORTS_ES6, CodegenConstants.SUPPORTS_ES6_DESC).defaultValue("false")); cliOptions.add(new CliOption(CodegenConstants.SUPPORTS_ES6, CodegenConstants.SUPPORTS_ES6_DESC).defaultValue("false"));
// TODO: gen package.json? // TODO: gen package.json?
//Files for building our lib //Files for building our lib
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
supportingFiles.add(new SupportingFile("package.mustache", "", "package.json")); supportingFiles.add(new SupportingFile("package.mustache", "", "package.json"));
@ -517,8 +517,8 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo
} }
} }
for (Map<String, Object> mo : models) { for (Map<String, Object> mo : models) {
CodegenModel cm = (CodegenModel) mo.get("model"); CodegenModel cm = (CodegenModel) mo.get("model");
// Add additional filename information for imports // Add additional filename information for imports
mo.put("tsImports", toTsImports(cm, cm.imports)); mo.put("tsImports", toTsImports(cm, cm.imports));
} }
return objs; return objs;