Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions reference/constraints/When.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ in your expression:
``this``
The object being validated (e.g. an instance of Discount).
``value``
The value of the property being validated (only available when
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),
or the :doc:`raw value </validation/raw_values>`.

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