mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +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
|
'readonly' => false
|
||||||
));
|
));
|
||||||
} elseif ($annot instanceof QueryParam) {
|
} elseif ($annot instanceof QueryParam) {
|
||||||
if ($annot->strict && $annot->default === null) {
|
if ($annot->strict && $annot->nullable === false && $annot->default === null) {
|
||||||
$annotation->addRequirement($annot->name, array(
|
$annotation->addRequirement($annot->name, array(
|
||||||
'requirement' => $annot->requirements,
|
'requirement' => $annot->requirements,
|
||||||
'dataType' => '',
|
'dataType' => '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user