summaryrefslogtreecommitdiff
path: root/tests/draft7/optional/format/relative-json-pointer.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/draft7/optional/format/relative-json-pointer.json')
-rw-r--r--tests/draft7/optional/format/relative-json-pointer.json32
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/draft7/optional/format/relative-json-pointer.json b/tests/draft7/optional/format/relative-json-pointer.json
index 22fb14e..9309986 100644
--- a/tests/draft7/optional/format/relative-json-pointer.json
+++ b/tests/draft7/optional/format/relative-json-pointer.json
@@ -1,9 +1,39 @@
[
{
"description": "validation of Relative JSON Pointers (RJP)",
- "schema": {"format": "relative-json-pointer"},
+ "schema": { "format": "relative-json-pointer" },
"tests": [
{
+ "description": "all string formats ignore integers",
+ "data": 12,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore floats",
+ "data": 13.7,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore objects",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore arrays",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore booleans",
+ "data": false,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore nulls",
+ "data": null,
+ "valid": true
+ },
+ {
"description": "a valid upwards RJP",
"data": "1",
"valid": true