From 9120ad68ce24efafffba92d17d50f1a1b5c1c843 Mon Sep 17 00:00:00 2001 From: Arumoy Chakraborty Date: Wed, 25 Oct 2023 15:27:41 +0530 Subject: [PATCH] fix: path segment needs to be free of slashes (#33) --- src/main/java/io/swagger/swaggerhub/tasks/DownloadTask.java | 2 +- src/main/java/io/swagger/swaggerhub/tasks/UploadTask.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/swagger/swaggerhub/tasks/DownloadTask.java b/src/main/java/io/swagger/swaggerhub/tasks/DownloadTask.java index aefd5d7..6c7e8e2 100644 --- a/src/main/java/io/swagger/swaggerhub/tasks/DownloadTask.java +++ b/src/main/java/io/swagger/swaggerhub/tasks/DownloadTask.java @@ -34,7 +34,7 @@ public class DownloadTask extends DefaultTask { private String protocol = "https"; private Boolean resolved = false; private Boolean onPremise = false; - private String onPremiseAPISuffix = "/v1"; + private String onPremiseAPISuffix = "v1"; @Input public String getOwner() { diff --git a/src/main/java/io/swagger/swaggerhub/tasks/UploadTask.java b/src/main/java/io/swagger/swaggerhub/tasks/UploadTask.java index ff5e43b..b5156ef 100644 --- a/src/main/java/io/swagger/swaggerhub/tasks/UploadTask.java +++ b/src/main/java/io/swagger/swaggerhub/tasks/UploadTask.java @@ -34,7 +34,7 @@ public class UploadTask extends DefaultTask { private String format = "json"; private String oas = "2.0"; private Boolean onPremise = false; - private String onPremiseAPISuffix = "/v1"; + private String onPremiseAPISuffix = "v1"; private SwaggerHubClient swaggerHubClient;