'Swagger requests to typescript
I'm developing a custom yeoman generator to create an API Rest in Typescript (with express).
One of the features I want to add is to parse a swagger file (or openapi) and generate all types, routes and validations automatically.
Parse routes and methods is easy but generate types and validations is complicated and I'm looking for a library to do it for me.
The main functionality I'm looking for is to generate Typescript models and be able to relation them with the route itself.
I have tried swagger-typescript-api (which is great) but for client generation.
I have seen Swagger Codegen but is java and I want to use it in a yeoman generator.
I guess there are many generators which do that but I'm trying to create my own (and may be in the future implement my own swagger type parser).
¿Does anybody knows a library to achive that functionality?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
