简体   繁体   中英

Convert OpenAPI 3.0 to Swagger 2.0

Is there a generator to convert OpenAPI 3.0 to Swagger 2.0?

Mashery, an API gateway, requires Swagger 2.0 format on input to open endpoint.

Keep in mind that OAS3→OAS2 convertion is lossy in general, because OAS3 has features that did not exist in OAS2 (such as multiple servers, oneOf / anyOf , different schemas per media type, objects in query string parameters, cookie parameters, and others).

I needed version 2.0 for Power Automate .
When you are building some Azure Functions than try to create them in Visual studio and any checkbox that is named Swagger nor OpenApi need to been Enabled.

Now the API of your Azure Function contains the swagger.json what you can set into Power Automate Custom Connector

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM