Last updated
Was this helpful?
Last updated
Was this helpful?
You can enhance your OpenAPI specification using extensions—custom fields that start with the x-
prefix. These extensions let you add extra information and tailor your API documentation to suit different needs.
GitBook allows you to adjust how your API looks and works on your published site through a range of different extensions you can add to your OpenAPI spec.
Head to our to learn more about using OpenAPI extensions to configure your documentation.
The complete reference of OpenAPI extensions supported by GitBook.
lang
string
label
string
Code sample label, for example Node
or Python2.7
, optional, lang
is used by default
source
string
Code sample source code
Code sample language. Value should be one of the following