remove whitespace in stripped JSON comments

This commit is contained in:
2026-06-30 12:24:11 +02:00
parent f8358c9361
commit 3f75f567f3
+1 -1
View File
@@ -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);