Streamline management of API collections #1

Merged
administrator merged 43 commits from feature/script-autogenerate-http into main 2026-08-19 14:54:42 +02:00
Showing only changes of commit 3f75f567f3 - Show all commits
+1 -1
View File
@@ -494,7 +494,7 @@ export function buildRequestContent(request, requestName, requestConfig = {}, do
if (request.body && typeof request.body === 'object') { if (request.body && typeof request.body === 'object') {
const bodyType = String(request.body.type || '').toLowerCase(); const bodyType = String(request.body.type || '').toLowerCase();
if (bodyType === 'json') { if (bodyType === 'json') {
const jsonData = stripJsonComments(request.body.data); const jsonData = stripJsonComments(request.body.data, { whitespace: false });
if (jsonData !== undefined && jsonData !== null) { if (jsonData !== undefined && jsonData !== null) {
if (typeof jsonData === 'string') { if (typeof jsonData === 'string') {
requestBody = renderValue(jsonData); requestBody = renderValue(jsonData);