Skip to content

Commit 2616acd

Browse files
author
Ana Cicconi
committed
Constraints - empty strings and null values
1 parent 12ed2e6 commit 2616acd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/constraints/Length.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ min
115115
This required option is the "min" length value. Validation will fail if
116116
the given value's length is **less** than this min value.
117117

118+
It is important to notice that NULL values and empty strings are considered
119+
valid no matter if the constraint required a minimum length. Validators are
120+
triggered only if the value is not blank.
121+
118122
max
119123
~~~
120124

0 commit comments

Comments
 (0)