Express middleware for request and response validation.
npm install express-route-validationExpress middleware for request and response validation.
- 🔒 Request validation
- ✨ Response validation
- 💪 100% test coverage
- 📦 Zero dependencies (except peer dependencies)
- 🔥 TypeScript support
Ensure your Express routes are always receiving and returning the correct data with this express validation middleware. Seamlessly validate request and response objects, catching any instances where your route is returning unwanted data.
_Recommended to use an adapter that utilizes an external validation package like @express-route-validation/zod_
``bash``
npm install express-route-validation