Skip to content

Commit a668694

Browse files
committed
Core: clarify URI base applied to "id"
1 parent 4a947c5 commit a668694

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jsonschema-core.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,12 @@
329329

330330
<section title='The "id" keyword'>
331331
<t>
332-
The "id" keyword defines a URI for the schema, and the base URI that other URI references within
333-
the schema are resolved against. The "id" keyword itself is resolved against a base URI.
332+
The "id" keyword defines a URI for the schema,
333+
and the base URI that other URI references within the schema are resolved against.
334+
The "id" keyword itself is resolved against the base URI that the object as a whole appears in.
334335
</t>
335336
<t>
336-
The value for this keyword MUST be a string, and MUST represent a valid <xref target="RFC3986">URI-reference</xref>.
337+
If present, the value for this keyword MUST be a string, and MUST represent a valid <xref target="RFC3986">URI-reference</xref>.
337338
This value SHOULD be normalized, and SHOULD NOT be an empty fragment &lt;#&gt; or an empty string &lt;&gt;.
338339
</t>
339340
<t>

0 commit comments

Comments
 (0)