Skip to content

Commit 61f6d73

Browse files
authored
Merge branch 'master' into master
2 parents 31c3904 + a8d6513 commit 61f6d73

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

src/main/java/io/swagger/codegen/v3/generators/typescript/TypeScriptAngularClientCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ private List<Map<String, String>> toTsImports(CodegenModel cm, Set<String> impor
348348
if (!im.equals(cm.classname)) {
349349
HashMap<String, String> tsImport = new HashMap<>();
350350
tsImport.put("classname", im);
351-
tsImport.put("filename", toModelFilename(im));
351+
tsImport.put("filename", im);
352352
tsImports.add(tsImport);
353353
}
354354
}
@@ -383,7 +383,7 @@ public String toModelFilename(String name) {
383383

384384
@Override
385385
public String toModelImport(String name) {
386-
return modelPackage() + "/" + toModelFilename(name);
386+
return modelPackage() + "/" + name;
387387
}
388388

389389
public String getNpmName() {

src/main/resources/handlebars/python/model.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ import pprint
66
import re # noqa: F401
77

88
import six
9-
{{#imports}}{{#@first}}
10-
{{/@first}}
11-
{{import}} # noqa: F401,E501
12-
{{/imports}}
139

1410

1511
{{#models}}
1612
{{#model}}
17-
class {{classname}}({{#parent}}{{parent}}{{/parent}}{{^parent}}object{{/parent}}):
13+
class {{classname}}(object):
1814
"""NOTE: This class is auto generated by the swagger code generator program.
1915

2016
Do not edit the class manually.

src/main/resources/mustache/python/model.mustache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ import pprint
66
import re # noqa: F401
77

88
import six
9-
{{#imports}}{{#-first}}
10-
{{/-first}}
11-
{{import}} # noqa: F401,E501
12-
{{/imports}}
139

1410

1511
{{#models}}
1612
{{#model}}
17-
class {{classname}}({{#parent}}{{parent}}{{/parent}}{{^parent}}object{{/parent}}):
13+
class {{classname}}(object):
1814
"""NOTE: This class is auto generated by the swagger code generator program.
1915

2016
Do not edit the class manually.

0 commit comments

Comments
 (0)