Commit 15142d9
committed
fix: model validator assignment consistency
Fix inconsistency where model-level before and wrap validators received
different states during field assignment validation.
During assignment with validate_assignment=True:
- Before: before validators received dict with NEW field value
- After: before validators receive dict with OLD field value (consistent with wrap validators)
Both validator modes now consistently see the pre-update state during assignment.
Fixes: pydantic/pydantic#11823"1 parent 25b0649 commit 15142d9
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
0 commit comments