Skip to content

Commit 6debeee

Browse files
authored
Merge pull request #747 from Relequestual/fix-745
Try to make Base URI resolution for a document clearer
2 parents 5b08871 + 7cd2594 commit 6debeee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jsonschema-core.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,11 @@
11511151
found, whether that was a network location, a local filesystem, or any other
11521152
situation identifiable by a URI of any known scheme.
11531153
</t>
1154+
<t>
1155+
If a schema document defines no explicit base URI with "$id" (embedded in content),
1156+
the base URI is that determined per
1157+
<xref target="RFC3986">RFC 3986 section 5</xref>.
1158+
</t>
11541159
<t>
11551160
If no source is known, or no URI scheme is known for the source, a suitable
11561161
implementation-specific default URI MAY be used as described in
@@ -1164,8 +1169,8 @@
11641169
The "$id" keyword defines a URI for the schema, and the base URI that
11651170
other URI references within the schema are resolved against.
11661171
A subschema's "$id" is resolved against the base URI of its parent schema.
1167-
If no parent sets an explicit base with "$id", the base URI is that of the
1168-
entire document, as determined per
1172+
If no parent schema defines an explicit base URI with "$id", the base URI
1173+
is that of the entire document, as determined per
11691174
<xref target="RFC3986">RFC 3986 section 5</xref>.
11701175
</t>
11711176
<t>

0 commit comments

Comments
 (0)