Skip to content

Commit

Permalink
Describe actual traversal behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
corphi committed Feb 3, 2019
1 parent 7bd5608 commit 8ed269f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reference/constraints/Valid.rst
Expand Up @@ -261,8 +261,8 @@ traverse

**type**: ``boolean`` **default**: ``true``

If this constraint is applied to a property that holds an array of objects,
then each object in that array will be validated only if this option is
set to ``true``.
If this constraint is applied to a ``Traversable``, then all containing values
will be validated if this option is set to ``true``. This option is ignored on
arrays: Arrays are traversed in either case. Keys are not validated.

.. include:: /reference/constraints/_payload-option.rst.inc

0 comments on commit 8ed269f

Please sign in to comment.