Middy Standard Schema Validator

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Middy middleware that validates events, contexts, or responses using any Standard Schema-compatible validation library (Zod, Arktype, Valibot, Joi, Yup, etc.). Version 1.0.0 is stable, with active development. It intelligently merges validated types into the event TypeScript type and provides opt-in detailed error exposure. Supports all modern Middy core versions (4-7) and dual CJS/ESM module output. Differentiators: library-agnostic via Standard Schema spec, optional event transformation, and flexible error handling.