The OpenAPI Specification Repository
Repo OAI/OpenAPI-Specification, read from GitHub 60 min ago. OAI has not joined Take My Repo.
This release brings no significant changes, but a valuable selection of updates and improvements in the specification text, including:
in: cookie, style: form, explode: false with arrays or objectsstyle: form, explode: true with arrays or objects in encoding objects such as application/x-www-form-urlencoded content or multipart/* message bodiesencoding objects are used, such as the use of prefixEncoding and itemEncoding with data modelled as an array, and usage of contentType together or separately from a Content-Type header in a message partencoding/<name>/contentType fieldMultipurpose tags, with nesting
summary field to allow short descriptions, used when displaying lists of tags.parent field to point to the tag that this tag is nested under.kind field to allow a tag to be classified into a category such as navigation, or audience.kind field is free-form text, however there are some expected/conventional values such as nav (in line with the most common current usage as grouping for documentation output).kind.Support for additional HTTP methods
query method alongside the existing get/post/put/delete/options/head/patch/trace.additionalOperations entry in a Path, use any other methods not listed as keys using the correct capitalization, e.g. LINK. Do NOT add HEAD under this, use the existing sibling head.Document identity and URL resolution
$self is added to allow users to define the base URI of the document, used to resolve relative references.Streaming support: sequential media types including SSE
text/event-stream for server-sent events (SSE) and multipart/mixed, application/jsonl, application/json-seq and others for sequential data.itemSchema in a mediatype entry to describe each item.Parameter and header changes
querystring, to allow parsing the entire query string as a single field similar to the way a request body is handled, using the content field.in the querystring as an alternative to the existing header, cookie, query and path values.allowReserved is now allowed on any parameter where the combination of in and style requires the value to be percent-encoded. Note that non-percent-encoded / characters are still forbidden in expanded in: path parameters by the Path Templating rules.New style option for cookies
style option cookie for content in a cookie, which uses semicolon as a separator and does not encode data values.Additions to support multipart media types
itemSchema field, for the schema that describes each of the items in a sequential media type.prefixEncoding and itemEncoding can be used instead of encoding for multipart media types.Improvements for APIs using XML as a content format
nodeType field allows mapping schemas to common XML node types: element, attribute, text, cdata, or none.attribute: true is now deprecated in favor of nodeType: attribute.wrapped: true is now deprecated in favor of nodeType: element (as nodeType defaults to none for arrays to preserve compatibility).xml keyword can be used in any Schema Object.null, handling arrays, replacing the name, and handling ordered elements.Examples as either structured or serialized values
examples fields) gets two new fields: dataValue and serializedValue.dataValue describes the example in structured format.serializedValue shows how the example will be formatted when it is sent/received by the API.externalValue field can still be used to give a reference to an example, but this is now clearly documented as being a serialized value.Updated security schemes
deviceAuthorization field in the flows object and for the individual flow, a new field deviceAuthorizationUrl alongside tokenUrl.oauth2MetadataUrl URL for auth server metadata, as described by the OAuth2 Server Metadata Standard.deprecated field for security schemes (indicating that the scheme may still be supported, but that it should not be used).Improvements to the Server Object
name field alongside description, url and variables.Better polymorphic support
propertyName can now be an optional field.defaultMapping to indicate which schema to use if the propertyName is not set, or if the value is unrecognized.Templates with formal syntax
Flexible metadata fields in the Response Object
description field for responses is now optional.summary field for responses.Additional updates
mediaTypes is supported under components to support re-use of Media Type Objects.Updates to referenced standards
Editorial changes
Link and Set-Cookie.Version 3.1.2 has no material changes but does contain editorial fixes, additional examples, and clarifications.
$ref in a Schema Object is a JSON Schema $ref keyword.null in XML as an advisory note; since the functionality cannot be changed it is implementation-defined for 3.1 tooling.While the 3.1.1 release makes no changes to requirements of the OpenAPI 3.1.0 specification, it does introduce a number of notable improvements, including:
OpenAPI Description writers should mark their OpenAPI Descriptions with the version of the OpenAPI specification they used to write their specification, updating where possible.
Tooling maintainers should expect minimal work to support 3.1.1; however, we recommend checking the list of changes below.
Introduce consistent language around OpenAPI Document/Description/Definition:
Improved language regarding schemas, explaining the difference between the OpenAPI schema, the schemas used within the OpenAPI schema, and the use of a non-authoritative JSON Schema to supplement the written spec.
Added guidance around use of schema dialects.
Additional guidance for resolving references and parsing documents was added, resolving component names, tags, and operationIds are clarified.
The adoption of JSON Schema in 3.1.x changed the parsing and referencing, and a new section was added to cover the changes in more depth than in 3.1.0.
Improved explanation of URLs and URIs, and made clear which to use for each URL/URI field.
Clarified that Markdown links are resolved in relation to their rendered context.
Extensive clarifications on data types and encoding.
Added a section on handling binary data.
Added a note that a security array that is empty or missing does not indicate that no security arrangements exist for this API.
Updated references to other standards where newer versions are available, and added more explanation for OpenIDConnect.
Added a "Security Concerns" section containing advice for implementers and users of OpenAPI.
Extensive refactoring of the parameters section
Examples were updated, improved, and explanations added.
Headers have their own section with examples and specific information.
Improves and expands on OpenAPI example and examples and adds a "Working with Examples" section with a clearer description and examples.
Clarifies and expands on file uploads, form-urlencoded request bodies, and multipart content, and moves them to a refactored Encoding Object section to provide better coverage of edge cases and more examples.
While the 3.0.4 release makes no changes to requirements of the OpenAPI 3.0.3 specification, it does introduce a number of notable improvements, including:
OpenAPI Description writers should mark their OpenAPI Descriptions with the version of the OpenAPI specification they used to write their specification, updating where possible.
Tooling maintainers should expect minimal work to support 3.0.4; however, we recommend checking the list of changes below.
Introduce consistent language around OpenAPI Document/Description/Definition:
Improved language regarding schemas, explaining the difference between the OpenAPI schema, the schemas used within the OpenAPI schema, and the use of a non-authoritative JSON Schema to supplement the written spec.
Additional guidance for resolving references and parsing documents was added, resolving component names, tags, and operationIds are clarified.
Clarified that Markdown links are resolved in relation to their rendered context.
Extensive clarifications on data types and encoding.
Added a section on handling binary data.
Added a note that a security array that is empty or missing does not indicate that no security arrangements exist for this API.
Updated references to other standards where newer versions are available, and added more explanation for OpenIDConnect.
Added a "Security Concerns" section containing advice for implementers and users of OpenAPI.
Extensive refactoring of the parameters section
Examples were updated, improved, and explanations added.
Headers have their own section with examples and specific information.
Improves and expands on OpenAPI example and examples and adds a "Working with Examples" section with a clearer description and examples.
Clarifies and expands on file uploads, form-urlencoded request bodies, and multipart content, and moves them to a refactored Encoding Object section to provide better coverage of edge cases and more examples.
The OAI is pleased to announce the official release of the OpenAPI Specification 3.1.0!
See 3.1.0-rc1 for previous changes in 3.1.0, including the explanation of why there are breaking changes.
jsonSchemaDialect top-level field to allow the definition of a default $schema value for Schema Objects.x-oai- and x-oas- prefixes for Specification Extensions are now reserved to be defined by the OpenAPI Initiative./, ? or #.$ref to take into account reference and component changes.