docs-util: improvements and fixes to OAS generation (#8855)
- Add to knowledge base summaries for delete-related properties - Fix long curl examples overflowing the line - Fix singular / plural usage in some knowledge base descriptions / summaries - Fix some workflows not picked up - Remove query params for routes that don't use them.
This commit is contained in:
@@ -13,8 +13,7 @@ export default function formatOas(
|
||||
oas: OpenApiOperation | OpenApiSchema,
|
||||
oasPrefix: string
|
||||
) {
|
||||
return `* ${oasPrefix}${DOCBLOCK_NEW_LINE}${stringify(oas).replaceAll(
|
||||
"\n",
|
||||
DOCBLOCK_NEW_LINE
|
||||
)}${DOCBLOCK_END_LINE}`
|
||||
return `* ${oasPrefix}${DOCBLOCK_NEW_LINE}${stringify(oas, {
|
||||
lineWidth: 200,
|
||||
}).replaceAll("\n", DOCBLOCK_NEW_LINE)}${DOCBLOCK_END_LINE}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user