Skip to content

Commit 0dd221f

Browse files
committed
feat: gracefully handle APIs with no summary and description
1 parent baf7b5a commit 0dd221f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/format-single-api-endpoint-as-markdown.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export const formatSingleApiEndpointAsMarkdown: FormatSingleApiEndpointAsMarkdow
7272
---
7373
## ${symbolByMethod[method]} ${method.toUpperCase()}: ${url}
7474
75-
- ${endpointDetailData.summary}
76-
- ${endpointDetailData.description}
75+
- Summary: ${endpointDetailData.summary ?? 'Not Provided'}
76+
- Description: ${endpointDetailData.description ?? 'Not Provided'}
7777
7878
${
7979
doesHaveParameters

0 commit comments

Comments
 (0)