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.
2 parents f462f11 + 88f5e11 commit b81586bCopy full SHA for b81586b
modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/utils/URLPathUtil.java
@@ -26,6 +26,8 @@ public static URL getServerURL(OpenAPI openAPI) {
26
String url = server.getUrl();
27
if(url.equals(DEFAULT_PATH)) {
28
url = LOCAL_HOST;
29
+ } else if (url.startsWith("/") && url.trim().length() > 1) {
30
+ url = LOCAL_HOST + url;
31
}
32
try {
33
return new URL(url);
0 commit comments