From 3d53853795891579e7038a2102afb1a412650956 Mon Sep 17 00:00:00 2001 From: Jason Desrosiers Date: Thu, 4 Mar 2021 12:19:38 -0800 Subject: [PATCH] Fix $ref with siblings in pre-2019-09 tests --- tests/draft4/ref.json | 2 +- tests/draft6/ref.json | 6 +++--- tests/draft7/ref.json | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/draft4/ref.json b/tests/draft4/ref.json index 820839d7..33f74414 100644 --- a/tests/draft4/ref.json +++ b/tests/draft4/ref.json @@ -127,7 +127,7 @@ "b": {"$ref": "#/definitions/a"}, "c": {"$ref": "#/definitions/b"} }, - "$ref": "#/definitions/c" + "allOf": [{ "$ref": "#/definitions/c" }] }, "tests": [ { diff --git a/tests/draft6/ref.json b/tests/draft6/ref.json index 3bb0efc3..676d6a06 100644 --- a/tests/draft6/ref.json +++ b/tests/draft6/ref.json @@ -127,7 +127,7 @@ "b": {"$ref": "#/definitions/a"}, "c": {"$ref": "#/definitions/b"} }, - "$ref": "#/definitions/c" + "allOf": [{ "$ref": "#/definitions/c" }] }, "tests": [ { @@ -239,7 +239,7 @@ { "description": "$ref to boolean schema true", "schema": { - "$ref": "#/definitions/bool", + "allOf": [{ "$ref": "#/definitions/bool" }], "definitions": { "bool": true } @@ -255,7 +255,7 @@ { "description": "$ref to boolean schema false", "schema": { - "$ref": "#/definitions/bool", + "allOf": [{ "$ref": "#/definitions/bool" }], "definitions": { "bool": false } diff --git a/tests/draft7/ref.json b/tests/draft7/ref.json index 97ddf07c..80a4d1d0 100644 --- a/tests/draft7/ref.json +++ b/tests/draft7/ref.json @@ -127,7 +127,7 @@ "b": {"$ref": "#/definitions/a"}, "c": {"$ref": "#/definitions/b"} }, - "$ref": "#/definitions/c" + "allOf": [{ "$ref": "#/definitions/c" }] }, "tests": [ { @@ -239,7 +239,7 @@ { "description": "$ref to boolean schema true", "schema": { - "$ref": "#/definitions/bool", + "allOf": [{ "$ref": "#/definitions/bool" }], "definitions": { "bool": true } @@ -255,7 +255,7 @@ { "description": "$ref to boolean schema false", "schema": { - "$ref": "#/definitions/bool", + "allOf": [{ "$ref": "#/definitions/bool" }], "definitions": { "bool": false }