From 325e3c47c6db77c1affef4b9f15540f16d59cc7f Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Wed, 27 May 2020 16:01:10 -0700 Subject: [PATCH 1/2] remove unneeded .* from unanchored patterns --- output/schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/schema.json b/output/schema.json index dce6fc0b..8b887117 100644 --- a/output/schema.json +++ b/output/schema.json @@ -50,14 +50,14 @@ { "properties": { "keywordLocation": { - "pattern": ".*/\\$ref/.*" + "pattern": "/\\$ref/" } } }, { "properties": { "keywordLocation": { - "pattern": ".*/\\$recursiveRef/.*" + "pattern": "/\\$recursiveRef/" } } } From 36d9fe5063cf6e1389a72cae10c53d0e92564a20 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Wed, 27 May 2020 16:02:52 -0700 Subject: [PATCH 2/2] fix output schema check for absoluteKeywordLocation property it is possible to have both $ref and $recursiveRef in the traversed schema path --- output/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/schema.json b/output/schema.json index 8b887117..bef85935 100644 --- a/output/schema.json +++ b/output/schema.json @@ -46,7 +46,7 @@ }, { "if": { - "oneOf": [ + "anyOf": [ { "properties": { "keywordLocation": {