Spec Extensions
Vendor extensions (x-*) in your OpenAPI spec that <rapi-doc> reads.
Nothing on this page matches.
| Extension | Description |
|---|---|
x-code-sample | Provides multi-language code snippets (cURL, Python, JavaScript, Go, etc.) for an endpoint. |
x-codeSample | Alternative camelCase syntax for x-code-sample. Provides multi-language code snippets for an endpoint. |
x-badges | Annotates endpoints with short, color-coded badges (e.g., "Internal", "Beta", "v2"). A list of objects with See it running →label and color (red, green, orange, blue, primary-color, or none to attach the label without showing it). Combine with filter-operations="!badge:Internal" to filter out restricted or internal APIs from public documentation.OpenAPI 3.2: a tag with kind: badge is shown as a badge (its summary as the label, in primary-color) on each operation that has it, and is not a section of its own. A label already in the operation's x-badges is not repeated, so use x-badges to pick a color. badge: in filter-operations matches x-badges labels only; filter a badge tag with tag:<name>.
|
x-mcp-resource |
On a See it running →GET operation with no required parameters, true makes the MCP export offer it as a resource too. It stays a tool the agent can call. Without it, an operation is a tool only.
|
x-displayName | On a tag or an x-tagGroups group, the name shown in the sidebar and headings instead of name, which stays the key operations use (compatible with ReDoc).OpenAPI 3.2: a tag's summary does the same and is the standard way. When a tag has both, x-displayName wins; without either, the tag's name is shown.
|
x-tagGroups | Top-level vendor extension defining a 3-tier navigation hierarchy (compatible with ReDoc / Zudoku). Organizes API tags into higher-level groups in the sidebar navigation, read mode sections, and view mode accordions. Takes an array of group objects, each with See it running →name, optional description, and a tags list of tag names. With it, every operation ID starts with its tag (pet--get-pet-by-id).OpenAPI 3.2: the standard way is parent on a tag ( { name: pet, summary: Pets, parent: shop }): RapiDoc groups child tags under their parent, with the parent's summary as the heading, and operation IDs keep no tag prefix. A parent with operations of its own comes first in its group; a grandchild goes in its top-level ancestor's group. When a spec has both, x-tagGroups decides.
|
x-tag-groups | Alternative kebab-case syntax for x-tagGroups. |
x-tag-expanded |
Controls initial expansion state. Can be configured on individual tags or on top-level x-tagGroups items to start sections expanded or collapsed.
|
x-fill-example |
Specifies whether a parameter's example value should be automatically populated in the interactive console input. To configure this behavior globally for all parameters, see fill-request-fields-with-example.
|
x-example-show-value |
Specifies whether parameter example values should be visibly rendered on the documentation card. |
x-client-id | Pre-fills the OAuth2 client ID in authentication modals. |
x-client-secret | Pre-fills the OAuth2 client secret in authentication modals. |
x-default-scopes | Pre-fills default OAuth2 permission scopes in authentication modals. |
x-receive-token-in |
Defines whether client credentials (client_id / client_secret) are sent via request body or HTTP Authorization header (request-body or header). Default is request-body. |
x-receive-token-in-options | Restricts the client authentication options available in the UI dropdown (e.g. ["request-body", "header"]). |
x-pkce-only |
When set to "true", enforces Proof Key for Code Exchange (PKCE) flow and prevents client secrets from being transmitted from the browser. |
x-authorize-params | Object or query string defining custom parameters appended to the OAuth2 authorizationUrl query string (e.g. proxy launch tokens, prompt, audience). Supported at both security scheme and individual flow levels. Example:
|
x-token-params | Object or form parameters sent in the POST request body to the OAuth2 tokenUrl (e.g. custom proxy fields, resource, audience). Supported at both security scheme and individual flow levels. Example:
|