Replace untyped dict request bodies with validated API models #6
Labels
No labels
architecture
cleanup
dependencies
performance
priority: high
priority: medium
reliability
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
solvreven/FPL#6
Loading…
Reference in a new issue
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?
Finding
The write/solver endpoints accept raw
dictbodies and manually coerce selected fields:backend/web/main.py:1131/api/squadbackend/web/main.py:1164/api/autocompletebackend/web/main.py:1237/api/overrideMalformed shapes can reach Python operations and produce 500s rather than structured 4xx responses (for example non-iterable
picks, unhashable element IDs, missingelement_id, non-listgws, or unexpected note types). Unknown fields and practical size limits are also unconstrained.Suggested direction
rules/override code.Acceptance criteria
Implemented on main in commit
141f4bfand covered by regression tests. Closing as complete.