Skip to content

Commit

Permalink
[Typescript] Import path is invalid in windows. (#7175)
Browse files Browse the repository at this point in the history
Use `/` instead of `File.Separator`. `File.Separator` is `/` in Windows.
  • Loading branch information
masmgr authored Aug 11, 2020
1 parent c89a5c4 commit 13c94ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> o
// Add additional filename information for model imports in the apis
List<Map<String, Object>> imports = (List<Map<String, Object>>) operations.get("imports");
for (Map<String, Object> im : imports) {
im.put("filename", ((String) im.get("import")).replace(".", File.separator));
im.put("filename", ((String) im.get("import")).replace(".", "/"));
im.put("classname", getModelnameFromModelFilename(im.get("import").toString()));
}

Expand Down

0 comments on commit 13c94ee

Please sign in to comment.