Skip to content

reword note about empty values during validation #10418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions reference/constraints/_empty-values-are-valid.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.. note::

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