Skip to content

Commit 9281199

Browse files
committed
fixes #648 - ref resolving error stemming from swagger-client is handled
1 parent 6b21aa8 commit 9281199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/spec-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default async function ProcessSpec(specUrl, generateMissingTags = false,
99
this.requestUpdate(); // important to show the initial loader
1010
let specMeta;
1111
if (typeof specUrl === 'string') {
12-
specMeta = await OpenApiParser.resolve({ url: specUrl }); // Swagger(specUrl);
12+
specMeta = await OpenApiParser.resolve({ url: specUrl, allowMetaPatches: false }); // Swagger(specUrl);
1313
} else {
14-
specMeta = await OpenApiParser.resolve({ spec: specUrl }); // Swagger({ spec: specUrl });
14+
specMeta = await OpenApiParser.resolve({ spec: specUrl, allowMetaPatches: false }); // Swagger({ spec: specUrl });
1515
}
1616
await sleep(0); // important to show the initial loader (allows for rendering updates)
1717

0 commit comments

Comments
 (0)