Skip to content

Commit f9acc45

Browse files
committed
Backport #451 to draft 7.
These are valid here too it'd appear, given draft 7 links to precisely the same spec for relative json pointers (https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#ref-relative-json-pointer)
1 parent fd0aa9f commit f9acc45

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/draft7/optional/format/relative-json-pointer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@
3232
"description": "negative prefix",
3333
"data": "-1/foo/bar",
3434
"valid": false
35+
},
36+
{
37+
"description": "## is not a valid json-pointer",
38+
"data": "0##",
39+
"valid": false
40+
},
41+
{
42+
"description": "zero cannot be followed by other digits, plus json-pointer",
43+
"data": "01/a",
44+
"valid": false
45+
},
46+
{
47+
"description": "zero cannot be followed by other digits, plus octothorpe",
48+
"data": "01#",
49+
"valid": false
3550
}
3651
]
3752
}

0 commit comments

Comments
 (0)