OAS 3 This page applies to OpenAPI 3 – the latest version of the OpenAPI Specification.
If you use OpenAPI 2 (fka Swagger), visit OpenAPI 2 pages.
Extensions, or vendor extensions, are custom properties that start with
, such as
. They can be used to describe extra functionality that is not covered by the standard OpenAPI Specification. Many API-related products that support OpenAPI make use of extensions to document their own attributes, such as Amazon API Gateway, ReDoc, APIMatic and others.
Extensions are supported on the root level of the API spec and in the following places:
paths section, individual paths and operations
- operation parameters
- security schemes
The extension value can be a primitive, an array, an object or
. If the value is an object or array of objects, the object’s property names do not need to start with
An API that uses Amazon API Gateway custom authorizer might include extensions similar to this: