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 bc65f0c commit b77eca1Copy full SHA for b77eca1
lib/swagger/index.js
@@ -24,7 +24,7 @@ async function getSpec(src, data) {
24
let response = await axios.get(src, requestOptions);
25
spec = response.data;
26
} else if (/\.yaml$/.test(src)) {
27
- spec = yamljs.load(util.skipBom(await fs.promises.readFile(src)));
+ spec = yamljs.load(src);
28
} else if (/\.json/.test(src)) {
29
spec = JSON.parse(util.skipBom(await fs.promises.readFile(src)));
30
} else {
0 commit comments