Does anybody know of a way to automatically generate NestJS typescript code from Swagger?
Asked
Active
Viewed 757 times
2
-
what do you mean?! – Hossein Heydari Jan 13 '21 at 10:20
-
@HosseinHeydari - I want to generate NestJS (Node) controller code from a Swagger API definition file. – norgepaul Jan 13 '21 at 14:46
-
Does this answer your question? [Swagger Codegen For Nestjs](https://stackoverflow.com/questions/57651497/swagger-codegen-for-nestjs) – tanius Jan 12 '23 at 00:00
2 Answers
4
Currently, there are no packages that build a Nest server based on a swagger.json file. Would be a cool project though

Jay McDoniel
- 57,339
- 7
- 135
- 147
1
Just found a project that claims it can generate Nest.js code from a Swagger / OpenAPI spec file:
swagger-nestjs-codegen on Github and on npmjs.com
Did not test it yet, though.

tanius
- 14,003
- 3
- 51
- 63