←
TECH DEBT TRIBUNAL
No Input Validation on Form Submission
⏱ 00:00
Junior · ~20 min
Explorer
Briefing
📂 src/api/payments
📄
paymentRoute.ts
📄
schemas.ts
paymentRoute.ts
schemas.ts
Loading...
Live Analysis
Cyclomatic Complexity
LIVE
0
/ 4 target
Complexity is within acceptable limits.
Objectives
PENDING
2
/ 4
✓ Define PaymentSchema with all four fields in schemas.ts
○ Use safeParse in the route and return 400 on failure
✓ Return structured field errors
○ Pass only validated data to processPayment
Acceptance Tests
Jest + Supertest
—
/ 18
Submit to run acceptance suite.
▶ Submit Refactor