[question] generating ky code from openapi specs #362
-
|
Hi! I just wanted to ask if anyone here is planning to create a tool that would take in openapi definition (yaml from swagger), and spit out typescript code for that api definition, which would be backed by api calls made by Same as https://github.com/OpenAPITools/openapi-generator but for Thank you! :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can use acacode/swagger-typescript-api#690 through the |
Beta Was this translation helpful? Give feedback.
-
|
What could be interesting, would be to look into how a ky wrapper could provide type inference from an openapi-typescript generated schema similar to how openapi-fetch is doing it. See: https://openapi-ts.pages.dev/openapi-fetch/ |
Beta Was this translation helpful? Give feedback.
You can use acacode/swagger-typescript-api#690 through the
@aleclarson/swagger-typescript-apipackage.