From 61d03c0e2002398a9fbb4a175ac7bce17f0701dd Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Thu, 24 Jun 2021 21:31:52 -0700 Subject: [PATCH] fix buggy test with $ref in older drafts all keywords adjacent to $ref have no effect in draft7 and earlier. --- tests/draft6/refRemote.json | 4 +++- tests/draft7/refRemote.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/draft6/refRemote.json b/tests/draft6/refRemote.json index 9d8057bf..a2221b21 100644 --- a/tests/draft6/refRemote.json +++ b/tests/draft6/refRemote.json @@ -172,7 +172,9 @@ "description": "remote ref with ref to definitions", "schema": { "$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json", - "$ref": "ref-and-definitions.json" + "allOf": [ + { "$ref": "ref-and-definitions.json" } + ] }, "tests": [ { diff --git a/tests/draft7/refRemote.json b/tests/draft7/refRemote.json index 9d8057bf..a2221b21 100644 --- a/tests/draft7/refRemote.json +++ b/tests/draft7/refRemote.json @@ -172,7 +172,9 @@ "description": "remote ref with ref to definitions", "schema": { "$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json", - "$ref": "ref-and-definitions.json" + "allOf": [ + { "$ref": "ref-and-definitions.json" } + ] }, "tests": [ {