From 3f75f567f381d566474b1fb86fe5a1547a4e5b70 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 29 Jun 2026 13:53:18 +0200 Subject: [PATCH] remove whitespace in stripped JSON comments --- scripts/generate-http-docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);