Skip to content

Commit eaf2d68

Browse files
authored
OpenAPI operation title fallback in sections (#2955)
1 parent 12bdbf9 commit eaf2d68

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/few-files-compete.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
OpenAPI operation title fallback in sections

packages/gitbook/src/lib/document-sections.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function getDocumentSections(
4646
sections.push({
4747
id: block.meta.id,
4848
tag: operation.method.toUpperCase(),
49-
title: operation.operation.summary ?? operation.path,
49+
title: operation.operation.summary || operation.path,
5050
depth: 1,
5151
deprecated: operation.operation.deprecated,
5252
});

0 commit comments

Comments
 (0)