Skip to content

Commit 2f6a498

Browse files
Merge pull request #492 from json-schema-org/ether/fix-refRemote
fix buggy test with $ref in older drafts
2 parents 0aefbb3 + 61d03c0 commit 2f6a498

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/draft6/refRemote.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@
172172
"description": "remote ref with ref to definitions",
173173
"schema": {
174174
"$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json",
175-
"$ref": "ref-and-definitions.json"
175+
"allOf": [
176+
{ "$ref": "ref-and-definitions.json" }
177+
]
176178
},
177179
"tests": [
178180
{

tests/draft7/refRemote.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@
172172
"description": "remote ref with ref to definitions",
173173
"schema": {
174174
"$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json",
175-
"$ref": "ref-and-definitions.json"
175+
"allOf": [
176+
{ "$ref": "ref-and-definitions.json" }
177+
]
176178
},
177179
"tests": [
178180
{

0 commit comments

Comments
 (0)