Skip to content

Commit 94eebdc

Browse files
committed
Add guidance on "minContains": 0
This value is only useful when "maxContains" is present.
1 parent f856f17 commit 94eebdc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jsonschema-validation.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,11 @@
601601
elements that are valid against the schema for "contains" is
602602
greater than, or equal to, the value of this keyword.
603603
</t>
604+
<t>
605+
A value of 0 is allowed, but is only useful for setting a range
606+
of occurrences from 0 to the value of "maxContains". A value of
607+
0 with no "maxContains" causes "contains" to always pass validation.
608+
</t>
604609
<t>
605610
If "contains" is not present within the same schema object,
606611
then this keyword has no effect.

0 commit comments

Comments
 (0)