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 5533ed4 commit 6d822ebCopy full SHA for 6d822eb
src/openApi/v2/parser/getServer.ts
@@ -8,5 +8,6 @@ export function getServer(openApi: OpenApi): string {
8
const scheme = openApi.schemes?.[0] || 'http';
9
const host = openApi.host;
10
const basePath = openApi.basePath || '';
11
- return host ? `${scheme}://${host}${basePath}` : basePath;
+ const url = host ? `${scheme}://${host}${basePath}` : basePath;
12
+ return url.replace(/\/$/g, '');
13
}
src/openApi/v3/parser/getServer.ts
@@ -9,5 +9,5 @@ export function getServer(openApi: OpenApi): string {
url = url.replace(`{${variable}}`, variables[variable].default);
- return url;
0 commit comments