mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #304 from h4cc/patch-2-squashed
Use only JMS/GroupExclusion if groups are there
This commit is contained in:
commit
f65a9c9965
@ -98,7 +98,9 @@ class JmsMetadataParser implements ParserInterface
|
||||
}
|
||||
|
||||
$exclusionStrategies = array();
|
||||
$exclusionStrategies[] = new GroupsExclusionStrategy($groups);
|
||||
if ($groups) {
|
||||
$exclusionStrategies[] = new GroupsExclusionStrategy($groups);
|
||||
}
|
||||
|
||||
$params = array();
|
||||
|
||||
|
@ -169,6 +169,14 @@ class JmsMetadataParserTest extends \PHPUnit_Framework_TestCase
|
||||
'sinceVersion' => null,
|
||||
'untilVersion' => null,
|
||||
),
|
||||
'baz' => array(
|
||||
'dataType' => 'string',
|
||||
'required' => false,
|
||||
'description' => null,
|
||||
'readonly' => false,
|
||||
'sinceVersion' => null,
|
||||
'untilVersion' => null,
|
||||
),
|
||||
),
|
||||
$output
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user