diff options
Diffstat (limited to 'json/tests/draft2020-12/refRemote.json')
-rw-r--r-- | json/tests/draft2020-12/refRemote.json | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/json/tests/draft2020-12/refRemote.json b/json/tests/draft2020-12/refRemote.json index a844039..433eb1d 100644 --- a/json/tests/draft2020-12/refRemote.json +++ b/json/tests/draft2020-12/refRemote.json @@ -1,7 +1,10 @@ [ { "description": "remote ref", - "schema": {"$ref": "http://localhost:1234/integer.json"}, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$ref": "http://localhost:1234/draft2020-12/integer.json" + }, "tests": [ { "description": "remote ref valid", @@ -17,7 +20,10 @@ }, { "description": "fragment within remote ref", - "schema": {"$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/integer"}, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$ref": "http://localhost:1234/draft2020-12/subSchemas-defs.json#/$defs/integer" + }, "tests": [ { "description": "remote fragment valid", @@ -34,7 +40,8 @@ { "description": "ref within remote ref", "schema": { - "$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/refToInteger" + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$ref": "http://localhost:1234/draft2020-12/subSchemas-defs.json#/$defs/refToInteger" }, "tests": [ { @@ -52,7 +59,8 @@ { "description": "base URI change", "schema": { - "$id": "http://localhost:1234/", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/", "items": { "$id": "baseUriChange/", "items": {"$ref": "folderInteger.json"} @@ -74,7 +82,8 @@ { "description": "base URI change - change folder", "schema": { - "$id": "http://localhost:1234/scope_change_defs1.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/scope_change_defs1.json", "type" : "object", "properties": {"list": {"$ref": "baseUriChangeFolder/"}}, "$defs": { @@ -101,7 +110,8 @@ { "description": "base URI change - change folder in subschema", "schema": { - "$id": "http://localhost:1234/scope_change_defs2.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/scope_change_defs2.json", "type" : "object", "properties": {"list": {"$ref": "baseUriChangeFolderInSubschema/#/$defs/bar"}}, "$defs": { @@ -132,7 +142,8 @@ { "description": "root ref in remote ref", "schema": { - "$id": "http://localhost:1234/object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/object", "type": "object", "properties": { "name": {"$ref": "name-defs.json#/$defs/orNull"} @@ -167,7 +178,8 @@ { "description": "remote ref with ref to defs", "schema": { - "$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/schema-remote-ref-ref-defs1.json", "$ref": "ref-and-defs.json" }, "tests": [ @@ -190,7 +202,8 @@ { "description": "Location-independent identifier in remote ref", "schema": { - "$ref": "http://localhost:1234/locationIndependentIdentifier.json#/$defs/refToInteger" + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$ref": "http://localhost:1234/draft2020-12/locationIndependentIdentifier.json#/$defs/refToInteger" }, "tests": [ { @@ -208,7 +221,8 @@ { "description": "retrieved nested refs resolve relative to their URI not $id", "schema": { - "$id": "http://localhost:1234/some-id", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "http://localhost:1234/draft2020-12/some-id", "properties": { "name": {"$ref": "nested/foo-ref-string.json"} } |