We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa27183 commit 2e879c4Copy full SHA for 2e879c4
1 file changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
@@ -269,9 +269,9 @@ void configureGeneratorProperties() {
269
contextPath = removeTrailingSlash(config.escapeText(url.getPath())); // for backward compatibility
270
basePathWithoutHost = contextPath;
271
if (URLPathUtils.isRelativeUrl(openAPI.getServers())) {
272
- basePath = removeTrailingSlash(basePathWithoutHost);
+ basePath = removeTrailingSlash(basePathWithoutHost);
273
} else {
274
- basePath = removeTrailingSlash(config.escapeText(URLPathUtils.getHost(openAPI, config.serverVariableOverrides())));
+ basePath = removeTrailingSlash(config.escapeText(URLPathUtils.getHost(openAPI, config.serverVariableOverrides())));
275
}
276
277
0 commit comments