diff options
Diffstat (limited to 'json/tests/draft-next/refRemote.json')
-rw-r--r-- | json/tests/draft-next/refRemote.json | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/json/tests/draft-next/refRemote.json b/json/tests/draft-next/refRemote.json index 43070a8..ca5b8c4 100644 --- a/json/tests/draft-next/refRemote.json +++ b/json/tests/draft-next/refRemote.json @@ -243,5 +243,53 @@ "valid": true } ] + }, + { + "description": "remote HTTP ref with different $id", + "schema": {"$ref": "http://localhost:1234/different-id-ref-string.json"}, + "tests": [ + { + "description": "number is invalid", + "data": 1, + "valid": false + }, + { + "description": "string is valid", + "data": "foo", + "valid": true + } + ] + }, + { + "description": "remote HTTP ref with different URN $id", + "schema": {"$ref": "http://localhost:1234/urn-ref-string.json"}, + "tests": [ + { + "description": "number is invalid", + "data": 1, + "valid": false + }, + { + "description": "string is valid", + "data": "foo", + "valid": true + } + ] + }, + { + "description": "remote HTTP ref with nested absolute ref", + "schema": {"$ref": "http://localhost:1234/nested-absolute-ref-to-string.json"}, + "tests": [ + { + "description": "number is invalid", + "data": 1, + "valid": false + }, + { + "description": "string is valid", + "data": "foo", + "valid": true + } + ] } ] |