mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
jms serializer groups can be nested (#1366)
This commit is contained in:
parent
1063972c27
commit
29f3042754
@ -93,7 +93,7 @@ final class Configuration implements ConfigurationInterface
|
||||
->scalarNode('type')->isRequired()->end()
|
||||
->arrayNode('groups')
|
||||
->defaultValue([])
|
||||
->prototype('scalar')->end()
|
||||
->variablePrototype()->end()
|
||||
->end()
|
||||
->arrayNode('areas')
|
||||
->defaultValue([])
|
||||
|
@ -68,6 +68,11 @@ class ConfigurationTest extends TestCase
|
||||
'type' => 'App\Foo',
|
||||
'areas' => ['internal'],
|
||||
],
|
||||
[
|
||||
'alias' => 'Foo1',
|
||||
'type' => 'App\Foo',
|
||||
'groups' => ['group1', ['group2', 'parent' => 'child3']],
|
||||
],
|
||||
],
|
||||
],
|
||||
]]);
|
||||
@ -102,6 +107,12 @@ class ConfigurationTest extends TestCase
|
||||
'groups' => [],
|
||||
'areas' => ['internal'],
|
||||
],
|
||||
[
|
||||
'alias' => 'Foo1',
|
||||
'type' => 'App\Foo',
|
||||
'groups' => ['group1', ['group2', 'parent' => 'child3']],
|
||||
'areas' => [],
|
||||
],
|
||||
], $config['models']['names']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user