Skip to content

Commit 19e7dfe

Browse files
committed
Change location-independent IDs to use $anchor.
These will move to the (added) anchor.json, but first making the code review easier by leaving them here.
1 parent 4e6c78b commit 19e7dfe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/draft2019-09/anchor.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[
2+
]

tests/draft2019-09/ref.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
}],
365365
"$defs": {
366366
"A": {
367-
"$id": "#foo",
367+
"$anchor": "foo",
368368
"type": "integer"
369369
}
370370
}
@@ -390,7 +390,8 @@
390390
}],
391391
"$defs": {
392392
"A": {
393-
"$id": "http://localhost:1234/bar#foo",
393+
"$id": "http://localhost:1234/bar",
394+
"$anchor": "foo",
394395
"type": "integer"
395396
}
396397
}
@@ -420,7 +421,7 @@
420421
"$id": "nested.json",
421422
"$defs": {
422423
"B": {
423-
"$id": "#foo",
424+
"$anchor": "foo",
424425
"type": "integer"
425426
}
426427
}

0 commit comments

Comments
 (0)