-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Labels
bugA test is wrong, or tooling is broken or buggy.A test is wrong, or tooling is broken or buggy.
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.
Metadata
Metadata
Assignees
Labels
bugA test is wrong, or tooling is broken or buggy.A test is wrong, or tooling is broken or buggy.