remove whitespace in stripped JSON comments
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user