Not all "strict" params should be "Requirements" in the documentation

View https://github.com/nelmio/NelmioApiDocBundle/issues/229
This commit is contained in:
Eneko Illarramendi 2013-08-18 22:33:04 +02:00
parent 6455a8669d
commit fef656cd13

View File

@ -30,7 +30,7 @@ class FosRestHandler implements HandlerInterface
'readonly' => false
));
} elseif ($annot instanceof QueryParam) {
if ($annot->strict && $annot->default === null) {
if ($annot->strict && $annot->nullable === false && $annot->default === null) {
$annotation->addRequirement($annot->name, array(
'requirement' => $annot->requirements,
'dataType' => '',