zod-express-middleware
zod-express-middleware copied to clipboard
it should be noted that for POST body schema you need express.json()
import express from "express"
import { z } from "zod"
const expressApp = express()
expressApp.use(express.json())
otherwise POST body req validation will not work
in the readme there are only GET examples