Task: Replace Ad-Hoc Validation in All API Routes with Zod #342
Labels
No labels
accessibility
api
auth.js
backend
copy
database
defect
dependencies
design
discussion
documentation
duplicate
enhancement
epic
feature
front-end
good first issue
help wanted
invalid
next.js
noscript
on hold
operations
optimization
postgresql
prisma
prototype
question
react
spike
stale
story
tailwind
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SSE/WebsiteTheSSEquel#342
Loading…
Add table
Add a link
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?
Replace Ad-Hoc Validation in All API Routes with Zod
Description
Every API route currently validates request bodies with manual checks: field presence tests, typeof guards, and one-off regex patterns. This is inconsistent, error-prone, and bypasses the shared schema limits. This task replaces all of that with schema.safeParse(body) calls using the schemas defined in Task #341.
Associated Epic: #340
Subtasks
Acceptance Criteria