diff options
Diffstat (limited to 'json/tests/draft3/ref.json')
-rw-r--r-- | json/tests/draft3/ref.json | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/json/tests/draft3/ref.json b/json/tests/draft3/ref.json index bd19cac..c984019 100644 --- a/json/tests/draft3/ref.json +++ b/json/tests/draft3/ref.json @@ -31,7 +31,7 @@ ] }, { - "description": "relative pointer ref", + "description": "relative pointer ref to object", "schema": { "properties": { "foo": {"type": "integer"}, @@ -52,6 +52,27 @@ ] }, { + "description": "relative pointer ref to array", + "schema": { + "items": [ + {"type": "integer"}, + {"$ref": "#/items/0"} + ] + }, + "tests": [ + { + "description": "match array", + "data": [1, 2], + "valid": true + }, + { + "description": "mismatch array", + "data": [1, "foo"], + "valid": false + } + ] + }, + { "description": "escaped pointer ref", "schema": { "tilda~field": {"type": "integer"}, |