Spec-Only Mode
Docs Home | Previous: OpenAPI and Swagger | Next: Guards and Security
Use spec-only mode when you need OpenAPI artifacts without running an HTTP server.
When To Use It
- CI pipelines that publish OpenAPI documents
- SDK generation jobs
- contract checks in pull requests
Example
Notes
- Endpoints with @Render are excluded from OpenAPI output.
- Security schemes are configured in the OpenAPI config object.
- You can still use createApp with openapi.filePath when running a server.