diff options
Diffstat (limited to 'json/tests/draft-next/anchor.json')
-rw-r--r-- | json/tests/draft-next/anchor.json | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/json/tests/draft-next/anchor.json b/json/tests/draft-next/anchor.json index 9744a3c..321d844 100644 --- a/json/tests/draft-next/anchor.json +++ b/json/tests/draft-next/anchor.json @@ -2,6 +2,7 @@ { "description": "Location-independent identifier", "schema": { + "$schema": "https://json-schema.org/draft/next/schema", "$ref": "#foo", "$defs": { "A": { @@ -26,10 +27,11 @@ { "description": "Location-independent identifier with absolute URI", "schema": { - "$ref": "http://localhost:1234/bar#foo", + "$schema": "https://json-schema.org/draft/next/schema", + "$ref": "http://localhost:1234/draft-next/bar#foo", "$defs": { "A": { - "$id": "http://localhost:1234/bar", + "$id": "http://localhost:1234/draft-next/bar", "$anchor": "foo", "type": "integer" } @@ -51,8 +53,9 @@ { "description": "Location-independent identifier with base URI change in subschema", "schema": { - "$id": "http://localhost:1234/root", - "$ref": "http://localhost:1234/nested.json#foo", + "$schema": "https://json-schema.org/draft/next/schema", + "$id": "http://localhost:1234/draft-next/root", + "$ref": "http://localhost:1234/draft-next/nested.json#foo", "$defs": { "A": { "$id": "nested.json", @@ -82,6 +85,7 @@ "description": "$anchor inside an enum is not a real identifier", "comment": "the implementation must not be confused by an $anchor buried in the enum", "schema": { + "$schema": "https://json-schema.org/draft/next/schema", "$defs": { "anchor_in_enum": { "enum": [ @@ -138,7 +142,8 @@ { "description": "same $anchor with different base uri", "schema": { - "$id": "http://localhost:1234/foobar", + "$schema": "https://json-schema.org/draft/next/schema", + "$id": "http://localhost:1234/draft-next/foobar", "$defs": { "A": { "$id": "child1", @@ -173,6 +178,7 @@ { "description": "non-schema object containing an $anchor property", "schema": { + "$schema": "https://json-schema.org/draft/next/schema", "$defs": { "const_not_anchor": { "const": { @@ -203,7 +209,10 @@ }, { "description": "invalid anchors", - "schema": { "$ref": "https://json-schema.org/draft/next/schema" }, + "schema": { + "$schema": "https://json-schema.org/draft/next/schema", + "$ref": "https://json-schema.org/draft/next/schema" + }, "tests": [ { "description": "MUST start with a letter (and not #)", |