Skip to content

Commit

Permalink
use Unix separators when on win-os
Browse files Browse the repository at this point in the history
  • Loading branch information
parenko committed May 19, 2024
1 parent 7715851 commit adae461
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import io.swagger.v3.parser.core.models.ParseOptions;
import io.swagger.v3.parser.util.ClasspathHelper;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
Expand Down Expand Up @@ -1093,7 +1094,7 @@ private URL inputSpecRemoteUrl() {

if (url == null) {
try {
url = new URI(inputSpec).toURL();
url = new URI(FilenameUtils.separatorsToUnix(inputSpec)).toURL();
} catch (URISyntaxException | MalformedURLException | IllegalArgumentException e) {
}
}
Expand Down

0 comments on commit adae461

Please sign in to comment.