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 4618668 commit d2fbf70Copy full SHA for d2fbf70
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