mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +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) {
|
load(urlOrObject: string|Object) {
|
||||||
let promise = new Promise((resolve, reject) => {
|
let promise = new Promise((resolve, reject) => {
|
||||||
this.parser = new JsonSchemaRefParser();
|
this.parser = new JsonSchemaRefParser();
|
||||||
this.parser.bundle(urlOrObject, {http: {withCredentials: false}})
|
this.parser.dereference(urlOrObject, {http: {withCredentials: false}})
|
||||||
.then(schema => {
|
.then(schema => {
|
||||||
if (typeof urlOrObject === 'string') {
|
if (typeof urlOrObject === 'string') {
|
||||||
this.specUrl = urlOrObject;
|
this.specUrl = urlOrObject;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user