docs: use new x-sidebar-summary for sidebar items in api-reference if available (#8865)
Use the new `x-sidebar-summary` OAS attribute when adding operations to the sidebar, if available.
This commit is contained in:
@@ -23,7 +23,10 @@ export default function getTagChildSidebarItems(
|
||||
...(definedOperation.tags || []),
|
||||
definedOperation.operationId,
|
||||
]),
|
||||
title: definedOperation.summary || definedOperation.operationId,
|
||||
title:
|
||||
definedOperation["x-sidebar-summary"] ||
|
||||
definedOperation.summary ||
|
||||
definedOperation.operationId,
|
||||
additionalElms: (
|
||||
<MethodLabel method={definedMethod} className="h-fit" />
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user