Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.quarkiverse.openapi.generator.deployment.template;

import java.io.File;
import java.lang.reflect.Method;
import java.net.URI;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -61,7 +61,7 @@ public boolean genDeprecatedApiAttr(final String pkg, final String classname,

@SuppressWarnings("unused")
public String parseUri(String uri) {
return OpenApiGeneratorOutputPaths.getRelativePath(Path.of(uri)).toString().replace(File.separatorChar, '/');
return OpenApiGeneratorOutputPaths.getRelativePath(Path.of(URI.create(uri))).toString();
}

@SuppressWarnings("unused")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public abstract class OpenApiClientGeneratorWrapper {
GlobalSettings.setProperty(ONCE_LOGGER, verbose ? FALSE.toString() : TRUE.toString());

this.configurator = configurator;
this.configurator.setInputSpec(specFilePath.toString());
// toUri() for the input first to ensure consistent path names which became an issue with the 3.1.0 spec-parser
this.configurator.setInputSpec(specFilePath.toUri().toString());
this.configurator.setOutputDir(outputDir.toString());
this.configurator.addAdditionalProperty(QUARKUS_GENERATOR_NAME,
Collections.singletonMap("openApiSpecId", getSanitizedFileName(specFilePath)));
Expand Down