Description
Auto-generates Nitro defineRouteMeta (OpenAPI) for Nuxt server routes from JSDoc annotations and Zod / Valibot schemas. Just write a route with bodySchema / querySchema / responseSchema exports and get documented OpenAPI (served via Nitro's ?meta pipeline, so handler source files are never modified). Works with Nitro's built-in OpenAPI (/_openapi.json, Scalar, Swagger UI).
Repository
https://github.com/davidtheheroes/nuxt-openapi-meta
npm
https://www.npmjs.com/package/nuxt-openapi-meta
Nuxt Compatibility
Nuxt 4
Description
Auto-generates Nitro
defineRouteMeta(OpenAPI) for Nuxt server routes from JSDoc annotations and Zod / Valibot schemas. Just write a route withbodySchema/querySchema/responseSchemaexports and get documented OpenAPI (served via Nitro's?metapipeline, so handler source files are never modified). Works with Nitro's built-in OpenAPI (/_openapi.json, Scalar, Swagger UI).Repository
https://github.com/davidtheheroes/nuxt-openapi-meta
npm
https://www.npmjs.com/package/nuxt-openapi-meta
Nuxt Compatibility
Nuxt 4