Supported Extensions
x-tagGroups
Use x-tagGroups to organize tags into named groups in the API navigation sidebar. Without this
extension, tags appear as a flat list. With tag groups, related tags are nested under group
headings.
Location
The extension is added at the Root Object level — the outermost level of the OpenAPI description.
| Option | Type | Description |
|---|---|---|
x-tagGroups | [Tag Group Object] | Array of tag groups for navigation layout. |
Tag Group Object
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the group in the sidebar. |
tags | [string] | Yes | Array of tag names to include in this group. |
Example
Code
This produces a sidebar like:
Code
Tags not included in any group are appended after the defined groups.
Last modified on