mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +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
|
||||
));
|
||||
} 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