From f3bfe3560ac1cdfdfb3f314cea58cef23f0cfe2e Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Mon, 6 Nov 2023 13:07:22 +0100 Subject: [PATCH] [Validator] Bring precisions on Valid constraint's groups --- reference/constraints/Valid.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reference/constraints/Valid.rst b/reference/constraints/Valid.rst index ba4e789091c..c308a8eac93 100644 --- a/reference/constraints/Valid.rst +++ b/reference/constraints/Valid.rst @@ -297,6 +297,13 @@ Options .. include:: /reference/constraints/_groups-option.rst.inc +.. note:: + + Unlike other constraints, the ``Valid`` constraint does not use the ``Default`` + group. This means that it will always be applied by default, **even** if you + specify a group when calling the validator. If you want to restrict the + constraint to a subset of groups, you have to define the ``groups`` option. + .. include:: /reference/constraints/_payload-option.rst.inc ``traverse``