Skip to content

Commit

Permalink
Fix for issue creating rest API using swagger definition
Browse files Browse the repository at this point in the history
  • Loading branch information
imsuneth committed Jul 14, 2023
1 parent 8de0b04 commit c8b6a14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public API generateSynapseAPI() throws APIGenException {
// url can be relative the place where the swagger is hosted.
apiContext = serversString;
}
if (apiContext.equals("/")) {
if (apiContext.isEmpty() || apiContext.equals("/")) {
apiContext = SwaggerConstants.DEFAULT_CONTEXT;
}
//cleanup context : remove ending '/'
Expand Down

0 comments on commit c8b6a14

Please sign in to comment.