openapistack / openapi-client-axios

JavaScript client library for consuming OpenAPI-enabled APIs with axios
https://openapistack.co
MIT License
558 stars 67 forks source link

Could we generate type files for operation methods from json schema in openapi spec? #2

Closed anttiviljami closed 5 years ago

anttiviljami commented 5 years ago

Perhaps with something like this:

https://www.npmjs.com/package/json-schema-to-typescript

jpoppe commented 5 years ago

Maybe also interesting (will look into this later): https://github.com/mstssk/sw2dts

Actually it is based on: https://github.com/horiuchi/dtsgenerator