mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #841 from flip111/patch-1
Update ApiDocExtractor.php
This commit is contained in:
commit
b01128dc13
@ -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