Skip to content

Commit baa67dd

Browse files
committed
Added documentation for message option of the True constraint
1 parent 1714a31 commit baa67dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/constraints/Valid.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ object and all sub-objects associated with it.
99
| Applies to | :ref:`property or method <validation-property-target>` |
1010
+----------------+---------------------------------------------------------------------+
1111
| Options | - `traverse`_ |
12+
| | - `message`_ |
1213
+----------------+---------------------------------------------------------------------+
1314
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` |
1415
+----------------+---------------------------------------------------------------------+
@@ -263,3 +264,10 @@ traverse
263264
If this constraint is applied to a property that holds an array of objects,
264265
then each object in that array will be validated only if this option is set
265266
to ``true``.
267+
268+
message
269+
~~~~~~~
270+
271+
**type**: ``string`` **default**: ``This value should be true.``
272+
273+
This is the message that will be shown if the value is false.

0 commit comments

Comments
 (0)