From 493440d98a632c473f7bee65bd00d28781940690 Mon Sep 17 00:00:00 2001 From: Samuele Lilli Date: Tue, 29 Jan 2019 14:54:56 +0100 Subject: [PATCH 1/2] Update sequence_provider.rst I think that is better to explain this difference as someone could misunderstand and think that a group in the sequence, alone, will trigger the validation of all groups in the sequence. --- validation/sequence_provider.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/validation/sequence_provider.rst b/validation/sequence_provider.rst index 8648259c03d..1c26baf276a 100644 --- a/validation/sequence_provider.rst +++ b/validation/sequence_provider.rst @@ -139,6 +139,14 @@ that group are valid, the second group, ``Strict``, will be validated. infinite recursion (as the ``Default`` group references the group sequence, which will contain the ``Default`` group which references the same group sequence, ...). + +.. caution:: + + Calling ``validate()`` with a group in the sequence (``Strict`` in previous example) + will cause a validation **only** with that group and not with all the groups in the + sequence. + This is because sequence is now referred to ``Default`` group validation even if the + "single" group is in the sequence. You can also define a group sequence in the ``validation_groups`` form option:: From f589b56a8b19162adde3a7fff9762012e8f71b20 Mon Sep 17 00:00:00 2001 From: Samuele Lilli Date: Mon, 4 Feb 2019 09:06:24 +0100 Subject: [PATCH 2/2] Update sequence_provider.rst --- validation/sequence_provider.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/validation/sequence_provider.rst b/validation/sequence_provider.rst index 1c26baf276a..82fe339168e 100644 --- a/validation/sequence_provider.rst +++ b/validation/sequence_provider.rst @@ -145,8 +145,7 @@ that group are valid, the second group, ``Strict``, will be validated. Calling ``validate()`` with a group in the sequence (``Strict`` in previous example) will cause a validation **only** with that group and not with all the groups in the sequence. - This is because sequence is now referred to ``Default`` group validation even if the - "single" group is in the sequence. + This is because sequence is now referred to ``Default`` group validation. You can also define a group sequence in the ``validation_groups`` form option::