This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Description
Bug Report Checklist
Description
To determine ModuleLocation, replaceAll is used on File.separator, which is "" on Windows systems.
mystring.replaceAll(String.valueOf(File.separatorChar), ".")
replaceAll is expecting a regex to replace, but "" is a reserved character in regex. An error is thrown:
java.util.regex.PatternSyntaxException: Unescaped trailing backslash near index 1
If you just replace all occurrences of .replaceAll(String.valueOf(File.separatorChar) with replace(File.separatorChar, '.'), it will work.
openapi-json-schema-generator version
4.5.1
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Just execute: "test\test1\test2".replaceAll(String.valueOf(File.separatorChar), ".") on Windows
Related issues/PRs
Suggest a fix
Exchange replaceAll with replace