Skip to content

Commit fcda424

Browse files
committed
Initial base URI for embedded objects.
This is to handle the case of schema objects embedded in documents such as OAS documents, particularly when the object is not an embedded schema resource. This holds when the object is a schema resource as well, but in that case the base URI is immediately overridden by "$id".
1 parent 3f1b1c4 commit fcda424

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jsonschema-core.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,11 @@
16061606
<xref target="RFC3986"> RFC 3986 Section 5.1.4</xref>. It is RECOMMENDED
16071607
that implementations document any default base URI that they assume.
16081608
</t>
1609+
<t>
1610+
If a schema object is embedded in a document of another media type, then
1611+
the initial base URI is determined according to the rules of that
1612+
media type.
1613+
</t>
16091614
<t>
16101615
Unless the "$id" keyword described in the next section is present in the
16111616
root schema, this base URI SHOULD be considered the canonical URI of the

0 commit comments

Comments
 (0)