Commit 3530b03
committed
fix: return 422 for invalid historyLength in REST get_task
Replace unhandled int() conversion with Pydantic validation so
non-numeric historyLength query params (e.g. ?historyLength=abc)
return 422 InvalidParamsError instead of 500.1 parent 87b9fd6 commit 3530b03
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
562 | 573 | | |
563 | 574 | | |
0 commit comments