/Knowledge/sources/honojs__hono/llms-full/validation-standard-schema-validator-middleware--7451c78d9d61.md
Validation: Standard Schema Validator Middleware - hono-docs
Validation: Standard Schema Validator Middleware Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt stand...
Validation: Standard Schema Validator Middleware
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#standard-schema-validator-middleware
Summary
Standard Schema is a specification that provides a common interface for TypeScript validation libraries. It was created by the maintainers of Zod, Valibot, and ArkType to allow ecosystem tools to work with...
Content
Standard Schema is a specification that provides a common interface for TypeScript validation libraries. It was created by the maintainers of Zod, Valibot, and ArkType to allow ecosystem tools to work with any validation library without needing custom adapters.
The Standard Schema Validator Middleware lets you use any Standard Schema-compatible validation library with Hono, giving you the flexibility to choose your preferred validator while maintaining consistent type safety.
::: code-group
npm i @hono/standard-validator
yarn add @hono/standard-validator
pnpm add @hono/standard-validator
bun add @hono/standard-validator
:::
Import sValidator from the package:
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#standard-schema-validator-middleware",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Validation > Standard Schema Validator Middleware (1)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 105,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Validation: Standard Schema Validator Middleware",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}