mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Add not blank format validation
All credits go to @spolischook See: https://github.com/nelmio/NelmioApiDocBundle/pull/234 Closes #234
This commit is contained in:
parent
32183f2618
commit
7fdcd65286
@ -125,6 +125,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
|
|||||||
|
|
||||||
switch ($class) {
|
switch ($class) {
|
||||||
case 'NotBlank':
|
case 'NotBlank':
|
||||||
|
$vparams['format'][] = '{not blank}';
|
||||||
case 'NotNull':
|
case 'NotNull':
|
||||||
$vparams['required'] = true;
|
$vparams['required'] = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user