Commit 92cac6f
fix(api): remove type cast in account-pool route, use Schema.Literal
Replace `as "claude" | "codex" | "gemini"` cast with
Schema.Literal validation in the route params schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 84dd3fb commit 92cac6f
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
445 | 444 | | |
446 | | - | |
| 445 | + | |
447 | 446 | | |
448 | 447 | | |
449 | 448 | | |
| |||
0 commit comments