@vercube/schema
v0.0.43
Published
Schema (swagger) module for Vercube framework
Downloads
1,316
Readme
@vercube/schema
OpenAPI schema generation for Vercube
Auto-generate OpenAPI specs from your Zod schemas. Add @Schema to your routes, get Swagger docs at /_schema.
✨ Features
- Zod-based - define schemas once, use for validation AND docs
- Decorator API -
@Schemaon routes to add OpenAPI metadata - Auto-resolution - picks up
@Body,@Param,@QueryParamsautomatically - Runtime endpoint - OpenAPI JSON available at
/_schema
📦 Installation
pnpm add @vercube/schema📖 Documentation
Check out the full docs at vercube.dev
