From 143125863781be7debc0eeb9c571bebb24237d5c Mon Sep 17 00:00:00 2001 From: Albert Date: Sat, 3 Oct 2020 22:04:35 -0700 Subject: [PATCH] Sets the options' language parameter to json in request body --- src/Writing/PostmanCollectionWriter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Writing/PostmanCollectionWriter.php b/src/Writing/PostmanCollectionWriter.php index 547cab77..e77af119 100644 --- a/src/Writing/PostmanCollectionWriter.php +++ b/src/Writing/PostmanCollectionWriter.php @@ -84,6 +84,11 @@ protected function generateEndpointItem($route) 'body' => [ 'mode' => $mode, $mode => json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT), + "options" => [ + $mode => [ + "language" => "json" + ] + ], ], 'description' => $route['metadata']['description'] ?? null, 'response' => [],