TECH DEBT TRIBUNALNo Input Validation on Form Submission
00:00Junior · ~20 min
📂 src/api/payments
📄paymentRoute.ts
📄schemas.ts
paymentRoute.ts
schemas.ts
Loading...
Live Analysis
Cyclomatic ComplexityLIVE
0 / 4 target
Complexity is within acceptable limits.
ObjectivesPENDING
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 TestsJest + Supertest
/ 18
Submit to run acceptance suite.