OpenAPI
caution
- 不支持 path 包含
/
- OAI/OpenAPI-Specification
- grpc-ecosystem/grpc-gateway#441
- OpenAPIv3
- google/gnostic
- OpenAPI <-> gRPC
- 支持 OpenAPIv3
- rapi-doc/RapiDoc
- Redocly/redoc
- fabien0102/openapi-codegen
- apioo/fusio
- Swagger2Markup/swagger2markup
- zalando/zally
- linter
OpenAPI
- https://www.linode.com/docs/api/openapi.yaml
- https://github.com/AdguardTeam/AdGuardHome/blob/master/openapi/openapi.yaml
- https://api.twitter.com/2/openapi.json
Version
-
OpenAPI v3.1 - 2020-06-18
- 100% JSON Schema 支持
- paths 必要 -> 可选
- 更好描述 回掉、异步事件
- 没有 null 类型,新增 nullable 属性
-
OpenAPI v3.0 - 2017-07-26
- v2 -> v2
- securityDefinitions, definitions, parameters, responses -> components
- body, formData -> requestBody
- oauth2
- application -> clientCredentials
- accessCode -> authorizationCode
- 更好的 JSON Schema 支持
- oneOf
- anyOf
- allOf
- http, basic
- openIdConnect - oidc discovery
- cookie
- callbacks
- link
- v2 -> v2
-
OpenAPI v2.0 - 2014-09-08
-
https://www.openapis.org/news/blogs/2016/10/tdc-structural-improvements-explaining-30-spec-part-2
FAQ
summary vs description
- summary - 简短描述
- description - 详细描述