Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31e613a

Browse filesBrowse files
committed
minor #5288 Constraints - empty strings and null values (anacicconi)
This PR was merged into the 2.3 branch. Discussion ---------- Constraints - empty strings and null values | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4244 Commits ------- 2616acd Constraints - empty strings and null values
2 parents eb17948 + 2616acd commit 31e613a
Copy full SHA for 31e613a

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎reference/constraints/Length.rst

Copy file name to clipboardExpand all lines: reference/constraints/Length.rst
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.