Skip to content

Commit 917f22c

Browse files
committed
Keyword support now strictly by vocabulary
No longer need exceptional case for individual keywords that require annotation collection.
1 parent 96ff071 commit 917f22c

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

jsonschema-core.xml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -704,15 +704,18 @@
704704
<t>
705705
Because annotation collection can add significant cost in terms of both
706706
computation and memory, implementations MAY opt out of this feature.
707-
Keywords known to an implementation to have assertion or applicator behavior
708-
that depend on annotation results MUST then be treated as errors, unless
709-
an alternate implementation producing the same behavior is available.
710-
Keywords of this sort SHOULD describe reasonable alternate approaches
711-
when appropriate. This approach is demonstrated by the
707+
Keywords that are specified in terms of collected annotations SHOULD
708+
describe reasonable alternate approaches when appropriate.
709+
This approach is demonstrated by the
712710
"<xref target="items" format="title"/>" and
713711
"<xref target="additionalProperties" format="title"/>" keywords in this
714712
document.
715713
</t>
714+
<t>
715+
Note that when no such alternate approach is possible for a keyword,
716+
implementations that do not support annotation collections will not
717+
be able to support those keywords or vocabularies that contain them.
718+
</t>
716719
</section>
717720
<section title="Identifiers" anchor="identifiers">
718721
<t>
@@ -2535,10 +2538,6 @@
25352538
Omitting this keyword has the same assertion behavior as
25362539
an empty schema.
25372540
</t>
2538-
<t>
2539-
Implementations that do not collect annotations MUST raise an error
2540-
upon encountering this keyword.
2541-
</t>
25422541
</section>
25432542

25442543
<section title="unevaluatedProperties" anchor="unevaluatedProperties">
@@ -2585,10 +2584,6 @@
25852584
Omitting this keyword has the same assertion behavior as
25862585
an empty schema.
25872586
</t>
2588-
<t>
2589-
Implementations that do not collect annotations MUST raise an error
2590-
upon encountering this keyword.
2591-
</t>
25922587
</section>
25932588
</section>
25942589

0 commit comments

Comments
 (0)