openapi-client-axios icon indicating copy to clipboard operation
openapi-client-axios copied to clipboard

Swagger 2 support

Open VitaliiHoncharenko opened this issue 4 years ago • 5 comments

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

VitaliiHoncharenko avatar May 18 '20 10:05 VitaliiHoncharenko

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.

anttiviljami avatar May 30 '20 15:05 anttiviljami

@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?

j-zimnowoda avatar Jun 23 '20 11:06 j-zimnowoda

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

anttiviljami avatar Sep 17 '20 15:09 anttiviljami

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

talolard avatar Oct 07 '20 13:10 talolard

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

XiRoSe avatar May 17 '21 22:05 XiRoSe