Closed
Description
The file tests/draft4/ref.json
contains this schema at line 122:
"schema": {
"definitions": {
"a": {"type": "integer"},
"b": {"$ref": "#/definitions/a"},
"c": {"$ref": "#/definitions/b"}
},
"$ref": "#/definitions/c"
},
This example is wrong, because according to the JSON Reference RFC
Any members other than "$ref" in a JSON Reference object SHALL be ignored.
This means that the member "definitions" SHALL be ignored (since it is a member beside the $ref
), and so the $ref
points to somewhere that should be ignored.