Add type annotations to untyped path parameters #27
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#27
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several endpoints accept path parameters without type hints: `players.py:598` (`player_id`), `players.py:1151` (`player_id`), `packs.py:119` (`pack_id`), `teams.py:178` (`team_id`). Without hints, FastAPI can't validate — invalid input causes unhandled DB errors instead of 422.
Priority: medium
Fixed in PR #43: #43
Added
inttype annotations to all four untyped path parameters (get_one_player,delete_player,get_one_pack,get_one_team). FastAPI will now validate these and return 422 for non-integer inputs instead of propagating unhandled DB errors.