Skip to content

chore: add centralized request validation using Zod#60

Open
devxsameer wants to merge 1 commit intoStreampay-Org:mainfrom
devxsameer:chore/zod-request-validation
Open

chore: add centralized request validation using Zod#60
devxsameer wants to merge 1 commit intoStreampay-Org:mainfrom
devxsameer:chore/zod-request-validation

Conversation

@devxsameer
Copy link
Copy Markdown

Summary

Introduces centralized request validation using Zod for API inputs.

Changes

  • Added reusable validation middleware (validate.ts)
  • Added schemas for params and query (schemas.ts)
  • Applied validation to streams endpoints
  • Ensures consistent 400 error shape: { error, details }

Tests

  • Covered invalid UUID, query params, and enum values
  • All tests passing

Security Notes

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@devxsameer Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request validation with Zod (or Joi) for all write routes

1 participant