1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Fixed missing required attributes

This commit is contained in:
Eldad Fux 2020-11-14 13:52:07 +02:00
parent b2b6b5420d
commit 8bbf394d4a

View file

@ -289,14 +289,14 @@ class Swagger2 extends Format
$url = \str_replace(':'.$name, '{'.$name.'}', $url);
}
if(!empty($body['schema']['properties'])) {
$temp['parameters'][] = $body;
}
if(!empty($bodyRequired)) {
$body['schema']['required'] = $bodyRequired;
}
if(!empty($body['schema']['properties'])) {
$temp['parameters'][] = $body;
}
$temp['consumes'] = $consumes;
$output['paths'][$url][\strtolower($route->getMethod())] = $temp;