Commit 6f2b0d7
committed
fix: Validate SetStatisticsUpdate correctly (fixes #2865)
Previously the pydantic @model_validator would fail because it assumed
statistics was a model instance. In a "before"" validator that is not
the case.
Use an "after" validator instead, where we can use instantiated and
validated fields.1 parent b0a7878 commit 6f2b0d7
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
189 | 185 | | |
190 | 186 | | |
191 | 187 | | |
| |||
0 commit comments