Skip to content

Commit ad4e9b1

Browse files
committed
Drop the initial resolve step for dynamic references
1 parent 5f783b8 commit ad4e9b1

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

Diff for: jsonschema-core.xml

+7-19
Original file line numberDiff line numberDiff line change
@@ -1478,27 +1478,15 @@
14781478
<t>
14791479
Together with "$dynamicAnchor", "$dynamicRef" implements a cooperative
14801480
extension mechanism that is primarily useful with recursive schemas
1481-
(schemas that reference themselves). Both the extension point and the
1482-
runtime-determined extension target are defined with "$dynamicAnchor",
1483-
and only exhibit runtime dynamic behavior when referenced with
1484-
"$dynamicRef".
1481+
(schemas that reference themselves). The extension point is defined
1482+
with "$dynamicAnchor", and only exhibits runtime dynamic behavior when
1483+
referenced with "$dynamicRef".
14851484
</t>
14861485
<t>
1487-
The value of the "$dynamicRef" property MUST be a string which is
1488-
a URI-Reference. Resolved against the current URI base, it produces
1489-
the URI used as the starting point for runtime resolution. This initial
1490-
resolution is safe to perform on schema load.
1491-
</t>
1492-
<t>
1493-
If the initially resolved starting point URI includes a fragment that
1494-
was created by the "$dynamicAnchor" keyword, the initial URI MUST be
1495-
replaced by the URI (including the fragment) for the outermost schema
1496-
resource in the <xref target="scopes">dynamic scope</xref> that defines
1497-
an identically named fragment with "$dynamicAnchor".
1498-
</t>
1499-
<t>
1500-
Otherwise, its behavior is identical to "$ref", and no runtime
1501-
resolution is needed.
1486+
The value of the "$dynamicRef" property MUST be a valid
1487+
<xref target="anchor">plain name fragment</xref>. The schema to apply is
1488+
the outermost schema resource in the <xref target="scopes">dynamic scope</xref>
1489+
that defines a "$dynamicAnchor" matching the value of this keyword.
15021490
</t>
15031491
<t>
15041492
For a full example using these keyword, see appendix

0 commit comments

Comments
 (0)