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.
1 parent 3dc71cd commit a22e38aCopy full SHA for a22e38a
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