We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
value
1 parent 0daa9fa commit 7098dccCopy full SHA for 7098dcc
reference/constraints/When.rst
@@ -173,8 +173,9 @@ in your expression:
173
``this``
174
The object being validated (e.g. an instance of Discount).
175
``value``
176
- The value of the property being validated (only available when
177
- the constraint is applied to a property).
+ Either the object being validated (when the constraint is applied to a class),
+ the value of the property being validated (when applied to a property),
178
+ or the :doc:`raw value </validation/raw_values>`.
179
180
The ``value`` variable can be used when you want to execute more complex
181
validation based on its value:
0 commit comments