Skip to content

Commit aa7098c

Browse files
committed
minor #21191 [Validator] Clarify the usage of the value variable for the When constraint (alcohol)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Clarify the usage of the `value` variable for the When constraint Fixes #21189 `@stof` does this look alright / reads naturally ? Commits ------- 7098dcc Clarify the usage of the `value` variable in the When constraint documentation
2 parents 0daa9fa + 7098dcc commit aa7098c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/constraints/When.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ in your expression:
173173
``this``
174174
The object being validated (e.g. an instance of Discount).
175175
``value``
176-
The value of the property being validated (only available when
177-
the constraint is applied to a property).
176+
Either the object being validated (when the constraint is applied to a class),
177+
the value of the property being validated (when applied to a property),
178+
or the :doc:`raw value </validation/raw_values>`.
178179

179180
The ``value`` variable can be used when you want to execute more complex
180181
validation based on its value:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy