Skip to content

Commit

Permalink
Allow to set basePath to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ElnSorokina authored Nov 15, 2023
1 parent 596c8aa commit ec45028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function getBasePath(apiDefinition){
if (apiDefinition.hasOwnProperty("openapi") && apiDefinition.servers && apiDefinition.servers[0].url) {
apiDefinition.basePath = apiDefinition.servers[0].url;
}
return config.basePath || apiDefinition.basePath;
return config.basePath !== undefined ? config.basePath : apiDefinition.basePath;
}

/**
Expand Down

0 comments on commit ec45028

Please sign in to comment.