Skip to content

Commit 030f604

Browse files
Added logic to dereference.js to more gracefully handle direct circular $refs. It now replaces the original $ref path with one that is relative to the root of the JSON Schema
1 parent ca9b322 commit 030f604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/specs/circular-external/circular-external.dereferenced.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ helper.dereferenced.circularExternal =
2323
},
2424
},
2525
"thing": {
26-
"$ref": "circular-external.yaml#/definitions/thing"
26+
"$ref": "#/definitions/thing"
2727
},
2828
"person": {
2929
"title": "person",

0 commit comments

Comments
 (0)