OpenAPI 规范仓库
OpenAPI Specification 的目标是为 REST API 定义一个标准的、与语言无关的接口,允许人和计算机在不访问源代码、文档或通过网络的情况下发现和理解服务的功能。
3.0.0
OAS 3.0.0 Change Log
The OAI is pleased to announce the official release of the OpenAPI Specification 3.0.0!
The list below reflect the changes since the last release candidate.
Schema Changes
- The
headers
map under the Encoding Object can now also reference headers.
Descriptive Changes
- Reworded descriptions for clearer intent (no change of meaning).
- The OpenAPI Definition File has been renamed as the OpenAPI Document.
- Changes to better conform to RFC 2119.
- Elaborated Request Body's and Response's content field support media type ranges.
- Fixed descriptions of
operationRef
andoperationId
under the Link Object. Also clarified that a Link MUST contain one of them. - Added links to OAuth2's and OpenID Connect's specifications.
Document Changes
- Some example fixes.
Check it out! https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md
Downloads
3.0.0-rc2
OAS 3.0.0-rc2 Change Log
Schema Changes
- The following objects have been removed from the specification: Server Variables, Content, Encoding, Callbacks, Headers, Links, Link Parameters, Scopes. They have all been replaced by the
Map
construct being effectively what they are. Clarifies that specification extensions are not allowed, as they did not make sense. - The Encoding Property Object has been renamed to the Encoding Object. This is a result of the above change.
- The Encoding Object now specifies to which media type each property is applicable.
- The different components under the
Components Object
can now either be defined inline or referenced. - For parameters using
content
, now only one media type can be used at most. - The
headers
property under the Link Object has been removed. - Link Object has a new
requestBody
property to allow passing a request body. - The Schema Object's
discriminator
property has been completely reworked to utilize the newly supportedoneOf
andanyOf
. A newDiscriminator Object
has been added to support these changes. - The XML Object's
namespace
now MUST be an absolute URI. - The
apiKey
security scheme can now also be incookie
.
Descriptive Changes
- The
Rich Text Formatting
section has been reworded to ease the requirements. - Added OpenAPI Definition File definition.
- Clarified that an empty or nonexisting
servers
would default to a single Server with theurl
value of/
. - Reworded the section explaining the specification's versioning scheme.
- Server Variable
enum
's description has been fixed to state it can only be a string (the type was correct). - Added clarification + examples how path matching works for paths defined under the
Paths Object
. - Removed recommendation for a 120 character limit for the
summary
field under the Operation Object. - Further details added to the
form
andsimple
types ofstyle
. - Clarified that the Encoding Object applies to both
multipart
andapplication/x-www-form-urlencoded
and only those. - Clarified the possible response code wildcards are only
1XX
,2XX
,3XX
,4XX
or5XX
. - Variable Expressions have been renamed to Runtime Expressions. They have been unified between Links and Callbacks, and have a dedicated section. Various examples have been moved and removed as a result.
- Runtime expressions now use curly braces when found inside strings.
- Link Object's
parameters
now defines how to deal with cases of parameter name ambiguity.
Document Changes
- ToC has been updated to reflect changes.
- Fixed various anchors in the document.
- Various examples have been fixed.
- Various editorial changes were made to make the document more readable.
Check it out! https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc2/versions/3.0.md
Downloads
3.0.0-rc1
OAS 3.0.0-rc1 Change Log
Schema Changes
url
is now required under the Server Object.- Server Variable Object's
enum
anddefault
values are nowstring
only (were anyprimitive
). servers
under the Path Item Object and Operation Object has been fixed to be an array of Server Objects and not a single one.- The
example
andexamples
fields have been reworked, alongside the Example Object. There is no longerexamples
field under the Schema Object. Whereexamples
exist, they are now a map of named examples with additional metadata for each example. The Example Object now has defined fields and is not free-form. content
is now required under the Request Body Object.href
under the Link Object has been renamed tooperationRef
, its description is clarified as well.- The
deprecated
field under the Schema Object now defaults tofalse
. - The
flow
field under the Security Scheme Object has been renamed toflows
. - Request Body's
required
now defaults tofalse
. - Added
allowReserved
to the Encoding Property Object.
Descriptive Changes
termsOfService
now MUST be in the form of a URL.- all
description
fields now support CommonMark. - Clarified that specific response codes (
200
for example) take precedence over response ranges (2XX
for example). - Clarified that for Parameter Object, either
schema
orcontent
are required. pattern
under the Schema Object now specifies the regex flavor.- Added header restrictions. "Accept", "Content-Type", "Authorization" header paramters and "Content-Type" response headers will now be ignored.
- Referenced a specific version of supported CommonMark.
- Added clarifications to
null
not being a type (as opposed to a value).
Document Changes
- ToC has been updated to reflect changes.
- Fixed various anchors in the document.
- Various examples have been fixed.
Check it out! https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc1/versions/3.0.md
Downloads
热门度与活跃度
10.0
1.7000000000000002
Watchers:656 |
Star:9679 |
Fork:3132 |
创建时间: 2014-03-04 00:53:36 |
最后Commits: 11天前 |
基本信息
分类:其它杂项 / JavaScript开发 |
收录时间:2017-01-02 18:52:31 |
OAS 3.0.1 Released!
Assets
OAS 3.0.1 Change Log
The OAI is pleased to announce the official release of the OpenAPI Specification 3.0.1!
This our first patch release since 3.0.0, containing the following updates:
Specification Changes
example
andexamples
fields descriptions were updated to reference them as 'fields' and not 'objects'.Additional Changes