Skip to content

Commit 3f935c2

Browse files
authored
Merge pull request #686 from handrews/base-uri
More guidance on initial base URI
2 parents c8eaad0 + 6d30f41 commit 3f935c2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jsonschema-core.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@
855855
<section title="Base URI and Dereferencing">
856856
<t>
857857
To differentiate between schemas in a vast ecosystem, schemas are
858-
identified by <xref target="RFC3986">URI</xref>, and can embed references to other schemas by specifying their URI.
858+
identified by <xref target="RFC3986">URI</xref>, and can embed references
859+
to other schemas by specifying their URI.
859860
</t>
860861

861862
<section title="Initial Base URI">
@@ -865,7 +866,14 @@
865866
</t>
866867
<t>
867868
Informatively, the initial base URI of a schema is the URI at which it was
868-
found, or a suitable substitute URI if none is known.
869+
found, whether that was a network location, a local filesystem, or any other
870+
situation identifiable by a URI of any known scheme.
871+
</t>
872+
<t>
873+
If no source is known, or no URI scheme is known for the source, a suitable
874+
implementation-specific default URI MAY be used as described in
875+
<xref target="RFC3986"> RFC 3986 Section 5.1.4</xref>. It is RECOMMENDED
876+
that implementations document any default base URI that they assume.
869877
</t>
870878
</section>
871879

0 commit comments

Comments
 (0)