Skip to content

Commit 0d14a13

Browse files
author
Bruno Vitorino
committed
Make clear when the options are effectively required
1 parent d3cf90b commit 0d14a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Count.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ max
125125

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

128-
This required option is the "max" count value. Validation will fail if the
128+
This option is the "max" count value and it is required if the **min** option has not been defined. Validation will fail if the
129129
given collection elements count is **greater** than this max value.
130130

131131
maxMessage
@@ -150,7 +150,7 @@ min
150150

151151
**type**: ``integer``
152152

153-
This required option is the "min" count value. Validation will fail if the
153+
This option is the "min" count value and it is required if the **max** option has not been defined. Validation will fail if the
154154
given collection elements count is **less** than this min value.
155155

156156
minMessage

0 commit comments

Comments
 (0)