Schema (swagger) module for Vercube framework
npm install @vercube/schema

!NPM Version&labelColor=%23000&color=%232e2e2e&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40vercube%2Fschema>)
!GitHub License&labelColor=%23000&color=%232f2f2f>)
!Codecov&labelColor=%23000&color=%232f2f2f>)
Auto-generate OpenAPI specs from your Zod schemas. Add @Schema to your routes, get Swagger docs at /_schema.
- Zod-based - define schemas once, use for validation AND docs
- Decorator API - @Schema on routes to add OpenAPI metadata
- Auto-resolution - picks up @Body, @Param, @QueryParams automatically
- Runtime endpoint - OpenAPI JSON available at /_schema
``bash``
pnpm add @vercube/schema
Check out the full docs at vercube.dev