Commit 80b6fc0
fix: Fix BeforeValidator treating
`lambda val: val or None` coerces `0` and `Decimal(0)` to `None`,
making it impossible to set `max_paid_dataset_items=0` or
`max_total_charge_usd=0`. Use explicit empty-string check instead,
consistent with the existing `timeout_at` validator.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0 as falsy in configuration fields1 parent 13b1fea commit 80b6fc0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments