Skip to content

Commit

Permalink
Constraints - empty strings and null values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Cicconi committed May 23, 2015
1 parent 12ed2e6 commit 2616acd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reference/constraints/Length.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ min
This required option is the "min" length value. Validation will fail if
the given value's length is **less** than this min value.

It is important to notice that NULL values and empty strings are considered
valid no matter if the constraint required a minimum length. Validators are
triggered only if the value is not blank.

max
~~~

Expand Down

0 comments on commit 2616acd

Please sign in to comment.