diff --git a/src/Commands/GenerateDocumentation.php b/src/Commands/GenerateDocumentation.php index 6829daa9..b6f648b7 100644 --- a/src/Commands/GenerateDocumentation.php +++ b/src/Commands/GenerateDocumentation.php @@ -85,7 +85,7 @@ private function writeMarkdown($parsedRoutes) $parsedRouteOutput = $parsedRoutes->map(function ($routeGroup) { return $routeGroup->map(function ($route) { - if (count($route['cleanBodyParameters'])) { + if (count($route['cleanBodyParameters']) && ! isset($route['headers']['Content-Type'])) { $route['headers']['Content-Type'] = 'application/json'; } $route['output'] = (string) view('apidoc::partials.route')->with('route', $route)->render();