mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
switch from json-schema-ref-parser's bundle method to dereference
This commit is contained in:
parent
49695c62c9
commit
160a5315ca
|
@ -44,7 +44,7 @@ export class SpecManager {
|
|||
load(urlOrObject: string|Object) {
|
||||
let promise = new Promise((resolve, reject) => {
|
||||
this.parser = new JsonSchemaRefParser();
|
||||
this.parser.bundle(urlOrObject, {http: {withCredentials: false}})
|
||||
this.parser.dereference(urlOrObject, {http: {withCredentials: false}})
|
||||
.then(schema => {
|
||||
if (typeof urlOrObject === 'string') {
|
||||
this.specUrl = urlOrObject;
|
||||
|
|
Loading…
Reference in New Issue
Block a user