Releases: OAI/OpenAPI-Specification
OAS 3.1.0 Released!
The OAI is pleased to announce the official release of the OpenAPI Specification 3.1.0!
Changelog
See 3.1.0-rc1 for previous changes in 3.1.0, including the explanation of why there are breaking changes.
Additions
- Added the
jsonSchemaDialecttop-level field to allow the definition of a default $schema value for Schema Objects.
Updates
- Updated some links to more accurate locations.
- Updates JSON Schema support to the latest 2020-12 draft.
- Revamped relative reference resolution under both URIs and URLs.
- Reworked file upload description to take into account new JSON Schema capabilities. This contains breaking changes.
- Both
x-oai-andx-oas-prefixes for Specification Extensions are now reserved to be defined by the OpenAPI Initiative.
Clarifications
- Path parameter values cannot contain the unescaped characters
/,?or#. - Further explanation of where Reference Object and JSON Schema's reference should be used.
- Unified wording when values are URLs/URIs.
- Reworded Path Item's
$refto take into account reference and component changes. - Fixed some examples.
- Minor text changes to improve consistency and readability.
- The description of the Reference Object has been updated to further clarify its behavior.
- Further updated Schema Object's description to take into account the latest draft, and the default use of https://spec.openapis.org/oas/3.1/dialect/base as the default OAS dialect.
- Reworded "Schema Vocabularies" to "Schema dialects"
OAS 3.1.0-rc1 Released!
Changelog
See 3.1.0-rc0 for previous changes in 3.1.0, including the explanation of why there are breaking changes.
Breaking changes
- Server Variable's
enumnow MUST not be empty (changed from SHOULD). - Server Variable's
defaultnow MUST exist in theenumvalues, if such values are defined (changed from SHOULD). responsesare no longer required to be defined under the Operation Object.
Clarifications
- It is now clarified when path template expression may not have a corresponding path parameter.
- Data types (and just primitive data types) now correspond to JSON Schema.
- Various cosmetic fixes.
- A new section was added to address how to handle the
$schemakeyword (implicitly and explicitly).
OAS 3.1.0-rc0 Released!
Changelog
As part of this release, we have decided to not follow SemVer anymore, and as such introduce breaking changes. These changes are documented as part of the release notes.
Additions
- Introduced a new top-level field -
webhooks. This allows describing out-of-band webhooks that are available as part of the API. - The Info Object has a new
summaryfield. - The License Object now has a new
identifierfield for SPDX licenses. - Components Object now has a new entry
pathItems, to allow for reusablePath Item Objects to be defined within a valid OpenAPI document.
Extended Functionality
- Updated primitive types to be based on JSON Schema Specification Draft 2019-09. This now includes type
null. - Lifted the restriction of allowing Request Body only in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for. While allowed in other methods, it is not recommended.
- Added support to
objecttypeforspaceDelimitedandpipeDelimitedstylevalues. - The Encoding Object now supports
style,explodeandallowReservedformultipart/form-datamedia type as well. - To enable better
webhookssupport, expressions in theCallback Objectcan now also referencePath Item Objects. - When using the Reference Object,
summaryanddescriptionfields can now be overridden. - The Schema Object is now fully compliant with JSON Schema draft 2019-09 (see JSON Schema Core and JSON Schema Validation). See also,
Breaking Changes - The Discriminator Object can now be extended with Specification Extensions.
- Added support for mutual TLS (
mutualTLS) as a security scheme. - Used security requirements can now define an array of roles that are required for execution (and not only scopes for OAuth 2.0 security schemes).
Changes
- An OpenAPI Document now requires at least one of
paths,componentsorwebhooksto exist at the top level. While previous versions requiredpaths, now a valid OpenAPI Document can describe only webhooks, or even only reusable components. Thus, an OpenAPI Document no longer necessarily describes an API. - Anywhere in the 3.0.0 Specification that had a type of Schema Object | Reference Object has been replaced to be Schema Object only. With the move to full JSON Schema support,
$refis inherently part of theSchema Objectand has its own defined behavior. - Extensions prefixed with
x-oas-are now reserved for the OpenAPI Initiative. formatis now not validated by default.
Breaking changes
- The specification versioning no longer follows SemVer.
- The
nullablekeyword has been removed from theSchema Object(nullcan be used as a type value). exclusiveMaximumandexclusiveMinimumcannot acceptbooleanvalues (following JSON Schema).- Due to the compliance with JSON Schema, there is no longer interaction between
requiredandreadOnly/writeOnlyin relation to requests and responses. format(whetherbyte,binary, orbase64) is no longer used to describe file payloads. As part of JSON Schema compliance, nowcontentEncodingandcontentMediaTypecan be used for such specification.
Clarifications
- Reworded the definition of OpenAPI Document to reflect that a document no longer must describe paths, but can describe either paths, webhooks, components or any combination of them.
- Dropped the term RESTful APIs in favor of HTTP APIs
- Resolution of relative references has been redefined and clarified. Note there's a difference in resolution between Schema Object References and all others.
- Modification of examples to improve them and provide context for new fields/objects.
OAS 3.0.3 Released!
OAS 3.0.3 Change Log
The OAI is pleased to announce the official release of the OpenAPI Specification 3.0.3!
As a patch release, the following changes were made to improve the specification in terms of readability and accuracy. None of these modifications change the behavior of the spec.
- Clarified how Path Templating works.
- Clarified the meaning of Semantic Versioning as it applies to the OpenAPI Specification (note, this is the
openapifield, not theversionfield). - Changed some hyperlinks from
httptohttps. - Clarified add the notion of optional security on operations.
- Added an explanation that the
Server Variable Object'senumshould not be empty. This is not a breaking change but should be considered as guidance for a more explicit restriction in the next major version. - Clarified paths under the
Paths Objectshould start with a forward slash. - Clarified
Path Item Object's$refbehavior with sibling fields. - Fixed a few examples.
- Clarified the map structure of
callbacksunder theOperation Object. - Clarified how path parameters are being matched.
- Clarified
example/examplesvalue(s) in theParameter Object. - Fixed example for
pipeDelimitedobjectvalue. - Fixed
Callback Objectdescription. - Clarified
Link Object'soperationDef's description. - Improved ABNF for
Runtime Expressions. - Clarified valid regex for
patternunderSchema Object. - Clarified the behavior of
nullableunderSchema Object. - Fixed names of OAuth2 flows in the description of
Security Scheme Object. - Improved description of
Security Filteringsection.
OAS 3.0.2 Released!
OAS 3.0.2 Change Log
The OAI is pleased to announce the official release of the OpenAPI Specification 3.0.2!
As a patch release, the following changes were made to improve the specification in terms of readability and accuracy. None of these modifications change the behavior of the spec.
- Added clarification to case sensitivity of keys in maps.
- Reworked the Data Type table, removing the
Common Nameto reduce potential confusion. - Clarified the description of the
Server Variable Object'sdefaultfield. - Fixed various examples.
- Clarified
operationIdis case sensitive. - Clarified the default value of the
Parameter Object'sdeprecatedfield isfalse. - Added recommendation to not use the
Parameter Object'sallowEmptyValuefield as it will be removed in a future version. - Fixed the description of the
Media Type Object'sschemafield. - Clarified the description of the
Responses Object's response codes field description. - Clarified that the
Schema Object'sadditionalPropertiesfield has a default value oftrue. - Fixed a small wording issue in the
Discriminator Objectdescription. - Fixed the
Security Scheme Objectdescription to include reference to the use of API Keys in cookies. - Fixed the description of the
Security Requirement Object.
OAS 3.0.1 Released!
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
- Updated document links to HTTPS where applicable.
exampleandexamplesfields descriptions were updated to reference them as 'fields' and not 'objects'.- Fixed various examples (indentation, field names, comments).
- Removed the Examples Object as it was left over during editing of v3.0.0. It was not used or referenced to by any other object in the specification.
- Various typo fixes.
Additional Changes
- Clarified the roles and processes in the Technical Steering Committee (TSC, formerly the TDC).
- Improvements to the development guidelines.
OAS 3.0.0 Released!
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
headersmap 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
operationRefandoperationIdunder 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
OAS 3.0.0-rc2 Released!
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
Mapconstruct 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 Encoding Object now defines
headersas a map of Header Objects. - The different components under the
Components Objectcan now either be defined inline or referenced. - For parameters using
content, now only one media type can be used at most. - The
headersproperty under the Link Object has been removed. - Link Object has a new
requestBodyproperty to allow passing a request body. - The Schema Object's
discriminatorproperty has been completely reworked to utilize the newly supportedoneOfandanyOf. A newDiscriminator Objecthas been added to support these changes. - The XML Object's
namespacenow MUST be an absolute URI. - The
apiKeysecurity scheme can now also be incookie.
Descriptive Changes
- The
Rich Text Formattingsection has been reworded to ease the requirements. - Added OpenAPI Definition File definition.
- Clarified that an empty or nonexisting
serverswould default to a single Server with theurlvalue 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
summaryfield under the Operation Object. - Further details added to the
formandsimpletypes ofstyle. - Clarified that the Encoding Object applies to both
multipartandapplication/x-www-form-urlencodedand only those. - Clarified the possible response code wildcards are only
1XX,2XX,3XX,4XXor5XX. - 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
parametersnow 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
OAS 3.0.0-rc1 Released!
OAS 3.0.0-rc1 Change Log
Schema Changes
urlis now required under the Server Object.- Server Variable Object's
enumanddefaultvalues are nowstringonly (were anyprimitive). serversunder the Path Item Object and Operation Object has been fixed to be an array of Server Objects and not a single one.- The
exampleandexamplesfields have been reworked, alongside the Example Object. There is no longerexamplesfield under the Schema Object. Whereexamplesexist, 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. contentis now required under the Request Body Object.hrefunder the Link Object has been renamed tooperationRef, its description is clarified as well.- The
deprecatedfield under the Schema Object now defaults tofalse. - The
flowfield under the Security Scheme Object has been renamed toflows. - Request Body's
requirednow defaults tofalse. - Added
allowReservedto the Encoding Property Object.
Descriptive Changes
termsOfServicenow MUST be in the form of a URL.- all
descriptionfields now support CommonMark. - Clarified that specific response codes (
200for example) take precedence over response ranges (2XXfor example). - Clarified that for Parameter Object, either
schemaorcontentare required. patternunder 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
nullnot 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
OAS 3.0.0-rc0 Released!
We're happy to announce the release of the first Implementer's Draft of OAS 3.0.0, known as 3.0.0-rc0.
A lot of changes in this release, as a first one goes, so expect the change log to be updated. An initial list of changes, in no particular order:
- Changed the versioning scheme of the spec.
- Reusable definitions in the spec has been expanded and reorganized under the Components Object.
- Added support for operation callbacks.
- Added support for a new static linking between responses and operations.
- Reworked parameters - removed formData parameters, added cookie parameters, changed body parameters to Request Body Objects as a separate entity.
- Parameters now support complex types.
- Responses support multiple media type specifications.
- Reworked file support. Dropped
fileas a type, but provided better handling for file uploads and downloads. - Reworked security definitions to allow for support for more schemes.
- Improved support for examples throughout the spec.
- Added support for defining multiple servers hosting the API, including URL variables.
Check it out! https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc0/versions/3.0.md
Our blog post contains more details of the process and next steps.