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

Swagger 2 support #24

Open VitaliiHoncharenko opened 4 years ago

VitaliiHoncharenko commented 4 years ago

Is it possible integrate this client to the previous version swagger?

anttiviljami commented 4 years ago

Hi @VitaliiHoncharenko ! Not at the moment. But perhaps we should provide that functionality. I'm a bit worried about the effect on bundle size if we include a library like swagger2openapi to do that.

j-zimnowoda commented 4 years ago

@anttiviljami The OpenApiV3 is relatively new and there is a huge number of existing API in version 2. I would be eager to contribute to this project, as I see a lot benefits of having support for V2. If the bundle size wouldn't be an issue. Do you see any other impediments?

anttiviljami commented 4 years ago

@j-zimnowoda Perhaps we publish multiple packages? A common openapi-client-axios and swagger-client-axios with swagger 2.0 support?

talolard commented 4 years ago

Hi, Just found this issue because I have an Swagger 2.0 spec (that I can't upgrade) and want to use this library (which is amazing and made my life so much better when I has OpenAPI 3). So +1

XiRoSe commented 3 years ago

I support this support request as well, a lot of existing Swagger 2.0 projects exist out there and will benefit greatly from that.