We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dc71cd + a22e38a commit 96f9974Copy full SHA for 96f9974
packages/docusaurus-plugin-openapi-docs/src/markdown/createDeprecationNotice.ts
@@ -23,8 +23,9 @@ export function createDeprecationNotice({
23
return guard(deprecated, () =>
24
createAdmonition({
25
children:
26
- clean(description) ??
27
- "This endpoint has been deprecated and may be replaced or removed in future versions of the API.",
+ description && description.length > 0
+ ? clean(description)
28
+ : "This endpoint has been deprecated and may be replaced or removed in future versions of the API.",
29
})
30
);
31
}
0 commit comments