...
1[
2 {
3 "description": "validation of Relative JSON Pointers (RJP)",
4 "schema": {"format": "relative-json-pointer"},
5 "tests": [
6 {
7 "description": "a valid upwards RJP",
8 "data": "1",
9 "valid": true
10 },
11 {
12 "description": "a valid downwards RJP",
13 "data": "0/foo/bar",
14 "valid": true
15 },
16 {
17 "description": "a valid up and then down RJP, with array index",
18 "data": "2/0/baz/1/zip",
19 "valid": true
20 },
21 {
22 "description": "a valid RJP taking the member or index name",
23 "data": "0#",
24 "valid": true
25 },
26 {
27 "description": "an invalid RJP that is a valid JSON Pointer",
28 "data": "/foo/bar",
29 "valid": false
30 }
31 ]
32 }
33]
View as plain text