Available Frameworks
Angular
Generate HTTP requests and resources for Angular applications
Fastify
Generate type-safe route handlers for Fastify servers
How Framework Plugins Work
Framework plugins analyze your OpenAPI specification and generate code that integrates seamlessly with your chosen framework:- Type Generation - Creates TypeScript types for requests, responses, and parameters
- Framework Integration - Generates code using framework-specific patterns and APIs
- Type Safety - Ensures compile-time type checking for your API implementation
- Developer Experience - Provides autocomplete and inline documentation
Choosing a Framework Plugin
Angular Plugin
Use the@angular/common plugin when building Angular applications. It generates:
- HTTP Requests -
HttpRequestinstances for use with Angular’s HTTP client - HTTP Resources - Resource APIs using Angular’s new
httpResourceAPI - Injectable Services - Classes decorated with
@Injectablefor dependency injection
Requires Angular 18+ for
httpResource support. Use httpRequests for older versions.Fastify Plugin
Use thefastify plugin when building Fastify servers. It generates:
- Route Handlers - Type-safe handler signatures matching your API operations
- Request Typing - Body, query, path, and header parameter types
- Response Typing - Success and error response types
Common Configuration
All framework plugins support standard plugin options:openapi-ts.config.ts
Standard Options
Whether to export generated code from the main
index.ts entry file.Whether to include JSDoc comments in generated code.
Next Steps
Angular Integration
Learn how to use the Angular plugin
Fastify Integration
Learn how to use the Fastify plugin