mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +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) {
|
||||
case 'NotBlank':
|
||||
$vparams['format'][] = '{not blank}';
|
||||
case 'NotNull':
|
||||
$vparams['required'] = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user