From e485c354acfa722f870a48467e0301c95271c5ea Mon Sep 17 00:00:00 2001 From: Shawn Silverman Date: Wed, 6 May 2020 20:55:10 -0700 Subject: [PATCH] [244] Add two more $anchor tests: invalid characters --- tests/draft2019-09/meta/core.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/draft2019-09/meta/core.json b/tests/draft2019-09/meta/core.json index 5908b754..0bf9d7d3 100644 --- a/tests/draft2019-09/meta/core.json +++ b/tests/draft2019-09/meta/core.json @@ -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 } ] },