summaryrefslogtreecommitdiff
path: root/json/tests/draft-next/anchor.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft-next/anchor.json')
-rw-r--r--json/tests/draft-next/anchor.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/json/tests/draft-next/anchor.json b/json/tests/draft-next/anchor.json
index 4e8987e..f0fcf02 100644
--- a/json/tests/draft-next/anchor.json
+++ b/json/tests/draft-next/anchor.json
@@ -200,5 +200,26 @@
"valid": false
}
]
+ },
+ {
+ "description": "invalid anchors",
+ "schema": { "$ref": "https://json-schema.org/draft/next/schema" },
+ "tests": [
+ {
+ "description": "MUST start with a letter (and not #)",
+ "data": { "$anchor" : "#foo" },
+ "valid": false
+ },
+ {
+ "description": "JSON pointers are not valid",
+ "data": { "$anchor" : "/a/b" },
+ "valid": false
+ },
+ {
+ "description": "invalid with valid beginning",
+ "data": { "$anchor" : "foo#something" },
+ "valid": false
+ }
+ ]
}
]