Skip to content

Commit 6a8fe42

Browse files
authored
Merge pull request #37 from jviotti/anchor-nearest-id
Test that `$anchor` applies to the nearest schema identifier only
2 parents fbdfaa0 + ef5cd2c commit 6a8fe42

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/json-schema-draft-2019-09/multiple-lookup-external-absolute-uri-with-different-id-anchor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"ref": "http://example.org/foo#baz",
3838
"target": { "$anchor": "baz", "quux": "eggs" }
3939
}
40+
},
41+
{
42+
"ref": "http://example.com/#baz",
43+
"error": true
4044
}
4145
]
4246
}

tests/json-schema-draft-2020-12/multiple-lookup-external-absolute-uri-with-different-id-anchor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"ref": "http://example.org/foo#baz",
3838
"target": { "$anchor": "baz", "quux": "eggs" }
3939
}
40+
},
41+
{
42+
"ref": "http://example.com/#baz",
43+
"error": true
4044
}
4145
]
4246
}

0 commit comments

Comments
 (0)