Basic relative json pointer tests for format
These cover specific RJP syntax elements but do not cover
all of the variations from the JP test suite that would also
apply to RJP.  More can be added later.
}
]
},
+ {
+ "description": "validation of Relative JSON Pointers (RJP)",
+ "schema": {"format": "relative-json-pointer"},
+ "tests": [
+ {
+ "description": "a valid upwards RJP",
+ "data": "1",
+ "valid": true
+ },
+ {
+ "description": "a valid downwards RJP",
+ "data": "foo/bar",
+ "valid": true
+ },
+ {
+ "description": "a valid up and then down RJP, with array index",
+ "data": "2/0/baz/1/zip",
+ "valid": true
+ },
+ {
+ "description": "a valid RJP taking the member or index name",
+ "data": "0#",
+ "valid": true
+ },
+ {
+ "description": "an invalid RJP that is a valid JSON Pointer",
+ "data": "/foo/bar",
+ "valid": false
+ }
+ ]
+ },
{
"description": "validation of JSON-pointers (JSON String Representation)",
"schema": {"format": "json-pointer"},
