We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d0bf3a + 8762610 commit e8bd27cCopy full SHA for e8bd27c
src/Commands/GenerateDocumentation.php
@@ -85,7 +85,7 @@ private function writeMarkdown($parsedRoutes)
85
86
$parsedRouteOutput = $parsedRoutes->map(function ($routeGroup) {
87
return $routeGroup->map(function ($route) {
88
- if (count($route['cleanBodyParameters'])) {
+ if (count($route['cleanBodyParameters']) && ! isset($route['headers']['Content-Type'])) {
89
$route['headers']['Content-Type'] = 'application/json';
90
}
91
$route['output'] = (string) view('apidoc::partials.route')->with('route', $route)->render();
0 commit comments