Skip to content

Commit

Permalink
fixed issue nelmio#565 - Required form fields for PUT method always f…
Browse files Browse the repository at this point in the history
…alse?
  • Loading branch information
Mykhailo Popok committed Apr 6, 2015
1 parent ef917f2 commit 26596de
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Extractor/ApiDocExtractor.php
Expand Up @@ -306,13 +306,6 @@ protected function extractData(ApiDoc $annotation, Route $route, \ReflectionMeth
$parameters = $this->clearClasses($parameters);
$parameters = $this->generateHumanReadableTypes($parameters);

if ('PUT' === $annotation->getMethod()) {
// All parameters are optional with PUT (update)
array_walk($parameters, function ($val, $key) use (&$parameters) {
$parameters[$key]['required'] = false;
});
}

$annotation->setParameters($parameters);
}

Expand Down

0 comments on commit 26596de

Please sign in to comment.