Static OpenAPI Generator for Next.js App Router — does it exist?
Unanswered
Italian Greyhound posted this in #help-forum
Italian GreyhoundOP
I'm looking for a tool that can statically generate OpenAPI (Swagger) docs from the app/api/**/route.ts structure in Next.js App Router.
The idea is to scan the file system, detect exported methods (GET, POST, etc.), trace TypeScript types for request/response, and output a full OpenAPI spec (JSON/YAML) — without relying on decorators or Zod.
Does anyone know if such a tool exists or is being worked on?
The idea is to scan the file system, detect exported methods (GET, POST, etc.), trace TypeScript types for request/response, and output a full OpenAPI spec (JSON/YAML) — without relying on decorators or Zod.
Does anyone know if such a tool exists or is being worked on?
1 Reply
Could maybe use Hono?