Skip to content

Commit 9fa967e

Browse files
committed
Update Length Validator Empty String Docs
Empty strings are no longer valid if a min is passed, null values still validate.
1 parent a8d4976 commit 9fa967e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/Length.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ and ``50``, you might add the following:
113113
}
114114
}
115115
116-
.. include:: /reference/constraints/_empty-values-are-valid.rst.inc
116+
.. include:: /reference/constraints/_null-values-are-valid.rst.inc
117117

118118
Options
119119
-------
@@ -199,9 +199,9 @@ the given value's length is **less** than this min value.
199199

200200
This option is required when the ``max`` option is not defined.
201201

202-
It is important to notice that NULL values and empty strings are considered
203-
valid no matter if the constraint required a minimum length. Validators
204-
are triggered only if the value is not blank.
202+
It is important to notice that ``null`` values are considered
203+
valid no matter if the constraint requires a minimum length. Validators
204+
are triggered only if the value is not ``null``.
205205

206206
``minMessage``
207207
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy