Using OpenAPI
Advanced Features
Support for advanced OpenAPI features
OpenAPI 3 offers advanced features for complex APIs. Here’s how to use them with Mintlify.
oneOf
, anyOf
, allOf
OpenAPI provides keywords to combine schemas:
oneOf
- exclusive-or operatoranyOf
- or operatorallOf
- and operator
Mintlify treats
oneOf
and anyOf
the same way.The
not
keyword is not currently supported.Using allOf
Mintlify combines properties of object schemas using allOf
. Example:
Using oneOf
and anyOf
Options are displayed in tabs. Use title
field for clear labels:
x-codeSamples
Add SDK examples to your API documentation using x-codeSamples
. Required fields:
lang
string
requiredCode language
label
string
Sample label
source
string
requiredSample code
Example:
Was this page helpful?