OPENAPI-ZOD
v0.1.0 — SchemaConverter for Zod (v3 + v4) to @hyper/openapi.
$ hyper add openapi-zod
Copies 1 file into src/hyper/openapi-zod/ and updates hyper.lock.json.
DEPS
- registry: openapi
FILES
- openapi-zod/index.ts
README
@hyper/openapi-zod
Zod (v3 + v4) SchemaConverter for @hyper/openapi.
Install
Components are installed as source into your repo, not pulled from npm. zod is added to your package.json automatically as a peer dependency.
bunx hyper add openapi openapi-zod
Usage
import { Hyper } from "@hyper/core"
import { openapiPlugin } from "@hyper/openapi"
import { zodConverter } from "@hyper/openapi-zod"
export default new Hyper()
.use(openapiPlugin({ converter: zodConverter }))
.listen(3000)
Docs
See the main README and docs/ for guides and integration recipes.
License
MIT
MANIFEST
- /r/openapi-zod.json — latest
- /r/openapi-zod@0.1.0.json — immutable