Skip to content

Commit b5104c4

Browse files
committed
removed depricated prop resolved-circular-refs
1 parent 74f84a7 commit b5104c4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/rapidoc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ export default class RapiDoc extends LitElement {
278278
apiKeyName : { type: String, attribute: 'api-key-name' },
279279
apiKeyValue : { type: String, attribute: 'api-key-value' },
280280
apiKeyLocation: { type: String, attribute: 'api-key-location'},
281-
resolveCircularRefs: { type: String, attribute: 'resolve-circular-refs' },
282281
};
283282
}
284283
attributeChangedCallback(name, oldVal, newVal) {
@@ -349,7 +348,7 @@ export default class RapiDoc extends LitElement {
349348
this.server = "";
350349
this.matchPaths = "";
351350

352-
ProcessSpec(specUrl, this.resolveCircularRefs).then(function(spec){
351+
ProcessSpec(specUrl).then(function(spec){
353352
me.loading = false;
354353
if (spec===undefined || spec === null){
355354
console.error('Unable to resolve the API spec. ');

src/utils/parse-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import JsonRefs from 'json-refs';
22
import converter from 'swagger2openapi';
33

4-
export default async function ProcessSpec(specUrl, resolveCircularRefs){
4+
export default async function ProcessSpec(specUrl){
55
let jsonParsedSpec, convertedSpec, resolvedRefSpec;
66
let convertOptions = { patch:true, warnOnly:true };
77
try {
@@ -11,7 +11,7 @@ export default async function ProcessSpec(specUrl, resolveCircularRefs){
1111
else {
1212
convertedSpec = await converter.convertObj(specUrl, convertOptions);
1313
}
14-
resolvedRefSpec = await JsonRefs.resolveRefs(convertedSpec.openapi, {resolveCirculars: resolveCircularRefs!=='false'});
14+
resolvedRefSpec = await JsonRefs.resolveRefs(convertedSpec.openapi, {resolveCirculars:true});
1515
jsonParsedSpec = resolvedRefSpec.resolved;
1616
}
1717
catch(err){

0 commit comments

Comments
 (0)