@apidevtools/json-schema-ref-parser 11.7.1 → 11.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/dereference.js +1 -1
- package/lib/dereference.ts +1 -1
- package/package.json +1 -1
package/dist/lib/dereference.js
CHANGED
|
@@ -140,7 +140,7 @@ function dereference$Ref($ref, path, pathFromRoot, parents, processedObjects, de
|
|
|
140
140
|
const shouldResolveOnCwd = isExternalRef && options?.dereference?.externalReferenceResolution === "root";
|
|
141
141
|
const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);
|
|
142
142
|
const cache = dereferencedCache.get($refPath);
|
|
143
|
-
if (cache) {
|
|
143
|
+
if (cache && !cache.circular) {
|
|
144
144
|
const refKeys = Object.keys($ref);
|
|
145
145
|
if (refKeys.length > 1) {
|
|
146
146
|
const extraKeys = {};
|
package/lib/dereference.ts
CHANGED
|
@@ -190,7 +190,7 @@ function dereference$Ref<S extends object = JSONSchema, O extends ParserOptions<
|
|
|
190
190
|
const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);
|
|
191
191
|
|
|
192
192
|
const cache = dereferencedCache.get($refPath);
|
|
193
|
-
if (cache) {
|
|
193
|
+
if (cache && !cache.circular) {
|
|
194
194
|
const refKeys = Object.keys($ref);
|
|
195
195
|
if (refKeys.length > 1) {
|
|
196
196
|
const extraKeys = {};
|