@cadriciel/module-swagger
v0.3.2
Published
Swagger/OpenAPI module for Cadriciel
Readme
📘 @cadriciel/module-swagger
Interactive API documentation for humans and machines.
Features
- OpenAPI 3.0 Generation: Automatically converts Zod schemas and route metadata into OpenAPI specs.
- Swagger UI: Beautiful interactive documentation mounted at
/swagger. - Scalar UI: Modern documentation interactive UI mounted at
/docs. - Live Sync: Documentation is automatically updated as you modify your routes.
Usage
import SwaggerModule from "@cadriciel/module-swagger";
kernel.load(SwaggerModule);Simply annotate your routes with .meta and Swagger will handle the rest.
