2

Does anybody know of a way to automatically generate NestJS typescript code from Swagger?

norgepaul
  • 6,013
  • 4
  • 43
  • 76

2 Answers2

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