summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/anchor.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/anchor.json')
-rw-r--r--json/tests/draft2020-12/anchor.json21
1 files changed, 15 insertions, 6 deletions
diff --git a/json/tests/draft2020-12/anchor.json b/json/tests/draft2020-12/anchor.json
index 8a6a5ea..423835d 100644
--- a/json/tests/draft2020-12/anchor.json
+++ b/json/tests/draft2020-12/anchor.json
@@ -2,6 +2,7 @@
{
"description": "Location-independent identifier",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/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/2020-12/schema",
+ "$ref": "http://localhost:1234/draft2020-12/bar#foo",
"$defs": {
"A": {
- "$id": "http://localhost:1234/bar",
+ "$id": "http://localhost:1234/draft2020-12/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/2020-12/schema",
+ "$id": "http://localhost:1234/draft2020-12/root",
+ "$ref": "http://localhost:1234/draft2020-12/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/2020-12/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/2020-12/schema",
+ "$id": "http://localhost:1234/draft2020-12/foobar",
"$defs": {
"A": {
"$id": "child1",
@@ -173,6 +178,7 @@
{
"description": "non-schema object containing an $anchor property",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"const_not_anchor": {
"const": {
@@ -204,7 +210,10 @@
{
"description": "invalid anchors",
"comment": "Section 8.2.2",
- "schema": { "$ref": "https://json-schema.org/draft/2020-12/schema" },
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$ref": "https://json-schema.org/draft/2020-12/schema"
+ },
"tests": [
{
"description": "MUST start with a letter (and not #)",