fix(api): validate quantity on POST /api/user-cards #46
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#46
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/scanner-user-cards-quantity-guard"
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?
Summary
parseInt(quantity, 10)+ NaN /< 1validation toPOST /api/user-cards, matching the contract already inpages/api/decks/[id]/cards.jsuser_cards.quantityon scanner add/increment pathsP2 follow-up from
audit-redesign-scanner-flow-44.Test plan
POST /api/user-cardswithquantity: "abc"→ 400POST /api/user-cardswithquantity: 0→ 400quantity: 2increments owned count by 2Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.