Skip to content

Commit 1fbc7a7

Browse files
committed
[244] Add two more $anchor tests: invalid characters
1 parent 8ff5624 commit 1fbc7a7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/draft2019-09/meta/core.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,32 @@
386386
"$anchor": "himom@"
387387
},
388388
"valid": false
389+
},
390+
{
391+
"description": "Fragment syntax disallowed",
392+
"data": {
393+
"$ref": "#foo",
394+
"$defs": {
395+
"A": {
396+
"$anchor": "#foo",
397+
"type": "integer"
398+
}
399+
}
400+
},
401+
"valid": false
402+
},
403+
{
404+
"description": "Invalid characters disallowed",
405+
"data": {
406+
"$ref": "#/a/b",
407+
"$defs": {
408+
"A": {
409+
"$anchor": "/a/b",
410+
"type": "integer"
411+
}
412+
}
413+
},
414+
"valid": false
389415
}
390416
]
391417
},

0 commit comments

Comments
 (0)