mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Changing the format of the body.raw when the requestBody is not an object
This commit is contained in:
@@ -1928,7 +1928,9 @@ module.exports = {
|
||||
|
||||
updateOptions = {
|
||||
mode: rDataMode,
|
||||
raw: JSON.stringify(bodyData, null, options.indentCharacter)
|
||||
raw: bodyType !== APP_JSON ?
|
||||
bodyData.toString() :
|
||||
JSON.stringify(bodyData, null, options.indentCharacter)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user