mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
This commit is contained in:
parent
9b258b10bb
commit
75794a74ec
@ -83,6 +83,10 @@ class SymfonyConstraintAnnotationReader
|
|||||||
$property->setExclusiveMaximum($annotation->value);
|
$property->setExclusiveMaximum($annotation->value);
|
||||||
} elseif ($annotation instanceof Assert\LessThanOrEqual) {
|
} elseif ($annotation instanceof Assert\LessThanOrEqual) {
|
||||||
$property->setMaximum($annotation->value);
|
$property->setMaximum($annotation->value);
|
||||||
|
} elseif ($annotation instanceof Assert\GreaterThan) {
|
||||||
|
$property->setExclusiveMinimum($annotation->value);
|
||||||
|
} elseif ($annotation instanceof Assert\GreaterThanOrEqual) {
|
||||||
|
$property->setMinimum($annotation->value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user