openapistack / openapi-client-axios

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

Why it fetch the definition every time, Can it do that in typegen process ? #151

Closed panudetjt closed 1 year ago

panudetjt commented 1 year ago

Hello, Thank you for created great library. I'm very new to openAPI. I wonder why the client have to fetch the definition every time before I want to use the api even I generate type with typegen. Or this is the industrial-standard ?

Thank you.

anttiviljami commented 1 year ago

You can avoid the fetch by directly passing the definition as an object instead of URL.