Commit 6173bd2
committed
Fix: Pydantic has an issue where default_factory is called even when Validation for a referenced field fails. This prevents a 'KeyNotFound' error from occuring. Fix is WIP by pydantic but not implemented yet.
pydantic/pydantic-core#16231 parent e79c46a commit 6173bd2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments