veto_openapi_gen
Generate an OpenAPI 3.1 spec YAML by parsing route files from Express, FastAPI, Hono, or Fastify frameworks. Returns the spec as a string with the option to write it to a file.
Instructions
Reads Express/FastAPI/Hono/Fastify route files and generates an OpenAPI 3.1 spec YAML. Returns the spec as a string and optionally writes it to openapi.yaml.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Single route file to parse (optional). | |
| framework | No | Framework hint: 'express','fastapi','hono','fastify', or 'auto' (default). | |
| write_file | No | Write openapi.yaml to project root (optional). | |
| project_dir | No | Scan all route files in project (optional). |