mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Update ApiDocExtractor.php
This commit is contained in:
parent
2d214fc934
commit
8921c48b32
@ -324,9 +324,9 @@ class ApiDocExtractor
|
||||
|
||||
if ('PATCH' === $annotation->getMethod()) {
|
||||
// All parameters are optional with PATCH (update)
|
||||
array_walk($parameters, function ($val, $key) use (&$parameters) {
|
||||
foreach ($parameters as $key => $val) {
|
||||
$parameters[$key]['required'] = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// merge parameters with parameters block from ApiDoc annotation in controller method
|
||||
|
Loading…
x
Reference in New Issue
Block a user