Skip to content

Try to make Base URI resolution for a document clearer #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions jsonschema-core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,11 @@
found, whether that was a network location, a local filesystem, or any other
situation identifiable by a URI of any known scheme.
</t>
<t>
If a schema document defines no explicit base URI with "$id" (embedded in content),
the base URI is that determined per
<xref target="RFC3986">RFC 3986 section 5</xref>.
</t>
<t>
If no source is known, or no URI scheme is known for the source, a suitable
implementation-specific default URI MAY be used as described in
Expand All @@ -1164,8 +1169,8 @@
The "$id" keyword defines a URI for the schema, and the base URI that
other URI references within the schema are resolved against.
A subschema's "$id" is resolved against the base URI of its parent schema.
If no parent sets an explicit base with "$id", the base URI is that of the
entire document, as determined per
If no parent schema defines an explicit base URI with "$id", the base URI
is that of the entire document, as determined per
<xref target="RFC3986">RFC 3986 section 5</xref>.
</t>
<t>
Expand Down