diff --git a/scripts/generate-http-docs.js b/scripts/generate-http-docs.js index befad3f..03688e2 100644 --- a/scripts/generate-http-docs.js +++ b/scripts/generate-http-docs.js @@ -494,7 +494,7 @@ export function buildRequestContent(request, requestName, requestConfig = {}, do if (request.body && typeof request.body === 'object') { const bodyType = String(request.body.type || '').toLowerCase(); if (bodyType === 'json') { - const jsonData = stripJsonComments(request.body.data); + const jsonData = stripJsonComments(request.body.data, { whitespace: false }); if (jsonData !== undefined && jsonData !== null) { if (typeof jsonData === 'string') { requestBody = renderValue(jsonData);