Skip to content

Commit 55ab7f4

Browse files
committed
reword note about empty values during validation
1 parent 33f40e0 commit 55ab7f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.. note::
22

3-
As with most of the other constraints, ``null`` values and empty strings
4-
are considered valid values. Otherwise, in addition to validating this value,
5-
you would also be requiring it, making it impossible to be optional. That's
6-
why it's common to combine this constraint with
7-
:doc:`NotBlank </reference/constraints/NotBlank>`.
3+
As with most of the other constraints, ``null`` and empty strings are
4+
considered valid values. This is to allow them to be optional values.
5+
If the value is mandatory, a common solution is to combine this constraint
6+
with :doc:`NotBlank </reference/constraints/NotBlank>`.

0 commit comments

Comments
 (0)