Skip to content

Commit b6769f2

Browse files
fix ids in older drafts
1 parent 1326f36 commit b6769f2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/draft3/ref.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,24 +201,24 @@
201201
]
202202
},
203203
{
204-
"description": "$ref prevents a sibling $id from changing the base uri",
204+
"description": "$ref prevents a sibling id from changing the base uri",
205205
"schema": {
206-
"$id": "http://localhost:1234/sibling_id/base/",
206+
"id": "http://localhost:1234/sibling_id/base/",
207207
"definitions": {
208208
"foo": {
209-
"$id": "http://localhost:1234/sibling_id/foo.json",
209+
"id": "http://localhost:1234/sibling_id/foo.json",
210210
"minimum": 2
211211
},
212212
"base_foo": {
213213
"$comment": "this canonical uri is http://localhost:1234/sibling_id/base/foo.json",
214-
"$id": "foo.json",
214+
"id": "foo.json",
215215
"minimum": 5
216216
}
217217
},
218218
"allOf": [
219219
{
220220
"$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not ttp://localhost:1234/sibling_id/foo.json",
221-
"$id": "http://localhost:1234/sibling_id/",
221+
"id": "http://localhost:1234/sibling_id/",
222222
"$ref": "foo.json"
223223
}
224224
]

tests/draft4/ref.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,24 +176,24 @@
176176
]
177177
},
178178
{
179-
"description": "$ref prevents a sibling $id from changing the base uri",
179+
"description": "$ref prevents a sibling id from changing the base uri",
180180
"schema": {
181-
"$id": "http://localhost:1234/sibling_id/base/",
181+
"id": "http://localhost:1234/sibling_id/base/",
182182
"definitions": {
183183
"foo": {
184-
"$id": "http://localhost:1234/sibling_id/foo.json",
184+
"id": "http://localhost:1234/sibling_id/foo.json",
185185
"minimum": 2
186186
},
187187
"base_foo": {
188188
"$comment": "this canonical uri is http://localhost:1234/sibling_id/base/foo.json",
189-
"$id": "foo.json",
189+
"id": "foo.json",
190190
"minimum": 5
191191
}
192192
},
193193
"allOf": [
194194
{
195195
"$comment": "$ref resolves to http://localhost:1234/sibling_id/base/foo.json, not ttp://localhost:1234/sibling_id/foo.json",
196-
"$id": "http://localhost:1234/sibling_id/",
196+
"id": "http://localhost:1234/sibling_id/",
197197
"$ref": "foo.json"
198198
}
199199
]

0 commit comments

Comments
 (0)