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
Clients generated with the typescript-nestjs experimental generator will not be compilable with the strict typescript compilation flag due to nullability issues in the generated ApiModule files.
openapi-generator version
Occurs in 7.2.0, used to work in 6.6.0. However, even in 6.6.0, certain features (which we don't use) also cause this to occur - see reproducer.
Description
Clients generated with the
typescript-nestjs
experimental generator will not be compilable with thestrict
typescript compilation flag due to nullability issues in the generatedApiModule
files.openapi-generator version
Occurs in 7.2.0, used to work in 6.6.0. However, even in 6.6.0, certain features (which we don't use) also cause this to occur - see reproducer.
OpenAPI declaration file content or url
For the reproducer, I used the petstore project
Generation Details
Steps to reproduce
npm i typescript axios @nestjs/common @nestjs/axios
,npx tsc init
)tsconfig.json
("experimentalDecorators": true, "emitDecoratorMetadata": true
)npx tsc --noEmit
)A ready-to-use repository with the steps above taken is available at https://github.com/swcm-mnestler/nestjs-openapi-reproducer
Suggest a fix
I'll create a MR for the nullability instances that I encountered, but it's possible there are more of these occurrences in the code base.
The text was updated successfully, but these errors were encountered: