Skip to content

Commit

Permalink
Merge pull request #9768 from swagger-api/ticket-7866
Browse files Browse the repository at this point in the history
refs #7866 - revert #9700
  • Loading branch information
frantuma authored Oct 11, 2019
2 parents c38faa1 + 1264dea commit 0aa2815
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ private List<Map<String, String>> toTsImports(CodegenModel cm, Set<String> impor
if (!im.equals(cm.classname)) {
HashMap<String, String> tsImport = new HashMap<>();
tsImport.put("classname", im);
tsImport.put("filename", im);
tsImport.put("filename", toModelFilename(im));
tsImports.add(tsImport);
}
}
Expand Down Expand Up @@ -425,7 +425,7 @@ public String toModelFilename(String name) {

@Override
public String toModelImport(String name) {
return modelPackage() + "/" + name;
return modelPackage() + "/" + toModelFilename(name);
}

public String getNpmName() {
Expand Down

0 comments on commit 0aa2815

Please sign in to comment.