diff --git a/config/api-postman.php b/config/api-postman.php index 744ae64..905da55 100644 --- a/config/api-postman.php +++ b/config/api-postman.php @@ -156,4 +156,18 @@ 'disk' => 'local', + /* + |-------------------------------------------------------------------------- + | Protocol Profile Behavior + |-------------------------------------------------------------------------- + | + | Set of configurations used to alter the usual behavior of sending the request. + | These can be defined in a collection at Item or ItemGroup level which will be inherited if applicable. + | + */ + + 'protocol_profile_behavior' => [ + 'disable_body_pruning' => false, // Control request body pruning for following methods: GET, COPY, HEAD, PURGE, UNLOCK + ] + ]; diff --git a/src/Commands/ExportPostmanCommand.php b/src/Commands/ExportPostmanCommand.php index cbc6fe9..78a786c 100644 --- a/src/Commands/ExportPostmanCommand.php +++ b/src/Commands/ExportPostmanCommand.php @@ -316,6 +316,12 @@ public function makeRequest($route, $method, $routeHeaders, $requestRules, $requ ], ]; + if($this->config['protocol_profile_behavior']['disable_body_pruning']) { + $data['protocolProfileBehavior'] = [ + 'disableBodyPruning' => true, + ]; + } + if ($requestRules) { $ruleData = [];