mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge pull request #230 from eillarra/patch-1
Not all "strict" params should be "Requirements" in the documentation, closes #229
This commit is contained in:
commit
a2dc56d6e5
@ -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