Model before validator receives model dict
representation when validating assignment
#11823
Open
1 task done
Uh oh!
There was an error while loading. Please reload this page.
Initial Checks
Description
When validating the assignment to a model field with
validate_assignment=True
, the model before validator receives adict
representation of the model instance and not the instance. This is inconsistent with the model wrap validator which always receives the instance.Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: