Skip to content

Commit 203dd29

Browse files
committed
Render examples when hyperschema link description is empty
The truthy guard on `hyperschemaLink.description` skipped `buildLinkDescription` entirely, so links with no prose but with appended (non-inline) examples — e.g. `plugins.create` — rendered nothing. `buildLinkDescription` already handles empty descriptions, so call it unconditionally.
1 parent 4f7d647 commit 203dd29

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/rest-api-reference/src/describeResourceAction.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,11 @@ export function describeResourceAction(
5959
!expandAll && expandDetails !== undefined && expandDetails.length > 0;
6060

6161
if (hasFilter) {
62-
return hyperschemaLink.description
63-
? buildLinkDescription(hyperschemaLink, expandDetails)
64-
: '';
62+
return buildLinkDescription(hyperschemaLink, expandDetails);
6563
}
6664

6765
const renderFull = (effectiveExpand: string[] | undefined): string => {
68-
const description = hyperschemaLink.description
69-
? buildLinkDescription(hyperschemaLink, effectiveExpand)
70-
: '';
66+
const description = buildLinkDescription(hyperschemaLink, effectiveExpand);
7167

7268
return render(
7369
description ? `${description}\n\n` : '',

0 commit comments

Comments
 (0)