-
I need to consume a Swagger 2.0 spec based REST API, the docs are available through Redoc at https://developer.viva.com/apis-for-point-of-sale/card-terminals-devices/rest-api/eft-pos-api-documentation/ But trying to generate a client gives me many errors, see my corresponding issue there: VivaPayments/API#2578 Is this due to Kiota not supporting Swagger 2.0? (Can't find anywhere what it does and does not support though) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ThaDaVos Any chance you double check the link to corresponding issue shared to help us understand better? It doesn't seem to point to valid location. As Kiota uses the OpenApi.NET library to parse the descriptions, descriptions of openapi 2.0 should be supported by the generator. |
Beta Was this translation helpful? Give feedback.
I updated the link - for some reason, even though the URL showed - Github gave me the new issue link...
I also figured out why the parsing is failing - the Spec is Swagger 2.0 AND OpenAPI 3.0.0 mixed together for some reason