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 0ed4b33 commit c24c14aCopy full SHA for c24c14a
web_src/js/standalone/swagger.js
@@ -6,7 +6,7 @@ import {load} from 'js-yaml';
6
// This code is shared for our own spec as well as user-defined specs via files in repo
7
window.addEventListener('load', async () => {
8
const url = parseUrl(document.getElementById('swagger-ui').getAttribute('data-source'));
9
- const res = await fetch(url.toString());
+ const res = await fetch(url);
10
const text = await res.text();
11
const spec = /\.ya?ml$/i.test(url.pathname) ? load(text) : JSON.parse(text);
12
const isOwnSpec = url.pathname.endsWith('/swagger.v1.json');
0 commit comments