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 6f1a420

Browse filesBrowse files
committed
[Validator] Improve Valid constraint description
1 parent 8bfa680 commit 6f1a420
Copy full SHA for 6f1a420

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+7
-0
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ the validation of the ``Address`` fields failed.
243243
App\Entity\Author.address.zipCode:
244244
This value is too long. It should have 5 characters or less.
245245
246+
.. include:: /reference/constraints/_empty-values-are-valid.rst.inc
247+
248+
.. note::
249+
250+
This constraint is not aware what sub-object must be associated with it, a common solution is to combine this constraint
251+
with :doc:`Type </reference/constraints/Type>`.
252+
246253
Options
247254
-------
248255

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.