/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-with-zod-1ad56311b0d3-with-zod-s0103-c0000.md
With Zod (1) - hono-docs
With Zod (1) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt with zod Summary You can use Zod, on...
With Zod (1)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#with-zod
Summary
You can use Zod, one of third-party validators. We recommend using a third-party validator. Install from the Npm registry. ::: code-group sh [npm] npm i zod sh [yarn] yarn add zod ```sh [pnpm] pnpm add zo...
Content
You can use Zod, one of third-party validators. We recommend using a third-party validator.
Install from the Npm registry.
::: code-group
npm i zodyarn add zodpnpm add zodbun add zod:::
Import z from zod.
import * as z from 'zod'Write your schema.
const schema = z.object({
body: z.string(),
})You can use the schema in the callback function for validation and return the validated value.