From 8ed269fe132ea0d0b4f07246cef486b723f0584b Mon Sep 17 00:00:00 2001 From: Philipp Cordes Date: Sat, 12 Jan 2019 19:23:19 +0100 Subject: [PATCH] Describe actual traversal behaviour --- reference/constraints/Valid.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/constraints/Valid.rst b/reference/constraints/Valid.rst index 72c4fb55792..fed9d1e7fd8 100644 --- a/reference/constraints/Valid.rst +++ b/reference/constraints/Valid.rst @@ -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