Skip to content

Commit b09e48d

Browse files
jdesrosiersssilverman
authored andcommitted
Fix $ref with siblings in pre-2019-09 tests
1 parent 0faaf09 commit b09e48d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/draft4/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"b": {"$ref": "#/definitions/a"},
128128
"c": {"$ref": "#/definitions/b"}
129129
},
130-
"$ref": "#/definitions/c"
130+
"allOf": [{ "$ref": "#/definitions/c" }]
131131
},
132132
"tests": [
133133
{

tests/draft6/ref.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"b": {"$ref": "#/definitions/a"},
128128
"c": {"$ref": "#/definitions/b"}
129129
},
130-
"$ref": "#/definitions/c"
130+
"allOf": [{ "$ref": "#/definitions/c" }]
131131
},
132132
"tests": [
133133
{
@@ -239,7 +239,7 @@
239239
{
240240
"description": "$ref to boolean schema true",
241241
"schema": {
242-
"$ref": "#/definitions/bool",
242+
"allOf": [{ "$ref": "#/definitions/bool" }],
243243
"definitions": {
244244
"bool": true
245245
}
@@ -255,7 +255,7 @@
255255
{
256256
"description": "$ref to boolean schema false",
257257
"schema": {
258-
"$ref": "#/definitions/bool",
258+
"allOf": [{ "$ref": "#/definitions/bool" }],
259259
"definitions": {
260260
"bool": false
261261
}

tests/draft7/ref.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"b": {"$ref": "#/definitions/a"},
128128
"c": {"$ref": "#/definitions/b"}
129129
},
130-
"$ref": "#/definitions/c"
130+
"allOf": [{ "$ref": "#/definitions/c" }]
131131
},
132132
"tests": [
133133
{
@@ -239,7 +239,7 @@
239239
{
240240
"description": "$ref to boolean schema true",
241241
"schema": {
242-
"$ref": "#/definitions/bool",
242+
"allOf": [{ "$ref": "#/definitions/bool" }],
243243
"definitions": {
244244
"bool": true
245245
}
@@ -255,7 +255,7 @@
255255
{
256256
"description": "$ref to boolean schema false",
257257
"schema": {
258-
"$ref": "#/definitions/bool",
258+
"allOf": [{ "$ref": "#/definitions/bool" }],
259259
"definitions": {
260260
"bool": false
261261
}

0 commit comments

Comments
 (0)