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