Specification Extensions in OpenAPI

By Phil Sturgeon
Last update on March 20, 2024

OpenAPI v3.1 has a concept of Specification Extensions which are additional properties not specified by the OpenAPI specification. These are a chance to customize and integrate tools from documentation to API gateways, all hooking into the OpenAPI document and storing information important to them in the form of extra properties that will be ignored by other tooling.

All those properties start with the x- naming convention to be identified as “eXternal” from the OpenAPI specification.

The x-feedbackLink object can be added directly in the info object of your OpenAPI document. Find out more in our dedicated section.

Add topics to your documentation (x-topics) #

This vendor-specific property we created helps to add more context paragraphs in your generated documentation. Find out more in our dedicated section.

Custom code sample examples (x-codeSamples) #

This vendor extension is only available for OpenAPI documents for now

We added a custom property, not supported by OpenAPI, so you can add your own code samples in one or more programming languages to your documentation. Find out more in our dedicated section.

Expose your beta features (x-beta) #

This custom property allows you to identify some components of your documentation as beta. Find out more in our dedicated section.

Enriching OpenAPI with Overlays