Skip to content

Commit

Permalink
[244] Add two more $anchor tests: invalid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilverman committed May 11, 2020
1 parent 5fa94af commit e485c35
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/draft2019-09/meta/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,32 @@
"$anchor": "himom@"
},
"valid": false
},
{
"description": "Fragment syntax disallowed",
"data": {
"$ref": "#foo",
"$defs": {
"A": {
"$anchor": "#foo",
"type": "integer"
}
}
},
"valid": false
},
{
"description": "Invalid characters disallowed",
"data": {
"$ref": "#/a/b",
"$defs": {
"A": {
"$anchor": "/a/b",
"type": "integer"
}
}
},
"valid": false
}
]
},
Expand Down

0 comments on commit e485c35

Please sign in to comment.