Closed mummybot closed 6 months ago
In the example above I think this is due to it matching the nestedProperty
which has a ref, and then assuming that there are no other refs within that property. not is valid schema, and can be an external ref. Any key within a parent property with an external ref should still be checked for other external refs.
FYI @paztis
The addition of the
dereferencedCache
in PR https://github.com/APIDevTools/json-schema-ref-parser/pull/195 has broken deeply nested external dependencies if a local dependency exists in the root schema.Given the following schema:
Expected
Actual
If I comment out https://github.com/APIDevTools/json-schema-ref-parser/blob/master/lib/dereference.js#L177 then it all works (by not adding to cache and therefore not skipping).