Skip to content

Commit 228bbe7

Browse files
committed
Clarify "items"/"additionalItems" interaction.
In #135 the question of whether additionalItems could fail validation if items is not defined was raised. Since items defines a default value of {}, it is never undefined, which is clarified in this change.
1 parent e3a668d commit 228bbe7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jsonschema-validation.xml

+5
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@
350350
if every instance element at a position greater than the size
351351
of "items" validates against "additionalItems".
352352
</t>
353+
<t>
354+
Otherwise, "additionalItems" MUST be ignored, as the "items"
355+
schema (possibly the default value of an empty schema) is
356+
applied to all elements.
357+
</t>
353358
</section>
354359

355360
<section title="maxItems">

0 commit comments

Comments
 (0)