Skip to content

Commit 8cdaf1a

Browse files
evaluation does not always begin at a root schema resource
for example, if we start evaluating at "https://foo.com/schema.json#/$defs/Foo" and /$defs/Foo does not contain an $id keyword
1 parent f21d2b3 commit 8cdaf1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jsonschema-core.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,9 @@
656656
<t>
657657
Other keywords may take into account the dynamic scope that
658658
exists during the evaluation of a schema, typically together
659-
with an instance document. The outermost dynamic scope is the
660-
root schema of the schema document in which processing begins.
659+
with an instance document.
660+
The outermost dynamic scope is the schema object at
661+
which processing begins, even if it is not a schema resource root.
661662
The path from this root schema to any particular keyword (that
662663
includes any "$ref" and "$dynamicRef" keywords that may have
663664
been resolved) is considered the keyword's "validation path."

0 commit comments

Comments
 (0)