mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Not all "strict" params should be "Requirements" in the documentation
View https://github.com/nelmio/NelmioApiDocBundle/issues/229
This commit is contained in:
parent
6455a8669d
commit
fef656cd13
@ -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' => '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user