Skip to content

Commit 2cfda03

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Make clear when the options are effectively required
2 parents 2400a7e + 031f898 commit 2cfda03

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

reference/constraints/Count.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ max
125125

126126
**type**: ``integer``
127127

128-
This required option is the "max" count value. Validation will fail if the
129-
given collection elements count is **greater** than this max value.
128+
This option is the "max" count value. Validation will fail if the given
129+
collection elements count is **greater** than this max value.
130+
131+
This option is required when the ``min`` option is not defined.
130132

131133
maxMessage
132134
~~~~~~~~~~
@@ -150,8 +152,10 @@ min
150152

151153
**type**: ``integer``
152154

153-
This required option is the "min" count value. Validation will fail if the
154-
given collection elements count is **less** than this min value.
155+
This option is the "min" count value. Validation will fail if the given
156+
collection elements count is **less** than this min value.
157+
158+
This option is required when the ``max`` option is not defined.
155159

156160
minMessage
157161
~~~~~~~~~~

0 commit comments

Comments
 (0)