Skip to content

Commit 13fb5fb

Browse files
author
veraj00
committed
Fix for GH issue #1047
1 parent ddea4ca commit 13fb5fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/template/OpenApiNamespaceResolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.File;
44
import java.lang.reflect.Method;
5+
import java.net.URI;
56
import java.nio.file.Path;
67
import java.util.ArrayList;
78
import java.util.Collections;
@@ -61,7 +62,7 @@ public boolean genDeprecatedApiAttr(final String pkg, final String classname,
6162

6263
@SuppressWarnings("unused")
6364
public String parseUri(String uri) {
64-
return OpenApiGeneratorOutputPaths.getRelativePath(Path.of(uri)).toString().replace(File.separatorChar, '/');
65+
return OpenApiGeneratorOutputPaths.getRelativePath(Path.of(URI.create(uri))).toString();
6566
}
6667

6768
@SuppressWarnings("unused")

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/wrapper/OpenApiClientGeneratorWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public abstract class OpenApiClientGeneratorWrapper {
6464
GlobalSettings.setProperty(ONCE_LOGGER, verbose ? FALSE.toString() : TRUE.toString());
6565

6666
this.configurator = configurator;
67-
this.configurator.setInputSpec(specFilePath.toString());
67+
this.configurator.setInputSpec(specFilePath.toUri().toString());
6868
this.configurator.setOutputDir(outputDir.toString());
6969
this.configurator.addAdditionalProperty(QUARKUS_GENERATOR_NAME,
7070
Collections.singletonMap("openApiSpecId", getSanitizedFileName(specFilePath)));

0 commit comments

Comments
 (0)