openapi-designer icon indicating copy to clipboard operation
openapi-designer copied to clipboard

Experimental support for OpenAPI specification version 3.0

Open bajiat opened this issue 7 years ago • 3 comments

Start by listing the differences required to forms based on spec version 3.0

bajiat avatar Sep 07 '17 10:09 bajiat

Differences with swagger specification version 2.0 and OpenAPI specification version 3.0.

  • URL structure. Swagger 2 lets you define a host and a baseURL, wherein OpenAPI 3 you define them both in URL. You can also have description for each url and multiple URLs for different paths in openAPI3. They're specified under "servers" in OpenAPI 3.

  • Components Swagger 2 had a concept of definitions, but OpenAPI 3 replaces them with components.

  • Request Format In swagger 2, they were subset of parameters, wherein OpenAPI 3 body and formdata are merged into one requestbody.

  • responses You don't have to define each response seperately anymore. Also callbacks let you define webhooks.

  • link object OpenAPI 3 adds linking.

  • chances to security Security has been renamed, OAuth2 flow names have been updated, you can have multiple flows, and there’s support for OpenID Connect. Basic type is now htpp and security has now "scheme" and "bearerformat".

Sources

https://swagger.io/docs/ https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md https://blog.readme.io/an-example-filled-guide-to-swagger-3-2/ https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md

JeHugawa avatar Oct 05 '17 11:10 JeHugawa

This is just a rough description of differences, and the specifics will be done on a later date.

JeHugawa avatar Nov 23 '17 11:11 JeHugawa

ui needs a button (next to the nav bar) where user can select version. use 3.0 by default and add explanation to about tab that we have 3.0 in use now

ilarimikkonen avatar Jul 18 '18 08:07 ilarimikkonen