You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/fastify/types.ts) interface.
description: Generate NestJS controller method types from OpenAPI specs. Type-safe controllers via implements.
2
+
title: NestJS v11 Plugin
3
+
description: Generate NestJS v11 controller methods from OpenAPI with the NestJS plugin for openapi-ts. Fully compatible with validators, transformers, and all core features.
The [openapi-ts-nestjs example](https://github.com/hey-api/openapi-ts/tree/main/examples/openapi-ts-nestjs) demonstrates the plugin with a minimal NestJS v11 app featuring two controllers and integration tests.
94
-
95
-
## Constraints
96
-
97
-
The `implements` pattern requires **whole-object parameter style** with NestJS decorators:
99
+
:::
98
100
99
-
```ts
100
-
// WORKS with implements - whole-object style (recommended)
You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/nestjs/types.ts) interface.
108
104
109
-
- Methods using `@Res()` for raw response access are incompatible — the extra parameter breaks assignability
110
-
- Operations without tags are grouped under `DefaultControllerMethods`
111
-
- Cookie parameters are not included in generated signatures — NestJS handles cookies via `@Req()` or dedicated middleware
0 commit comments