mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 13:09:25 +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()
|
->scalarNode('type')->isRequired()->end()
|
||||||
->arrayNode('groups')
|
->arrayNode('groups')
|
||||||
->defaultValue([])
|
->defaultValue([])
|
||||||
->prototype('scalar')->end()
|
->variablePrototype()->end()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('areas')
|
->arrayNode('areas')
|
||||||
->defaultValue([])
|
->defaultValue([])
|
||||||
|
@ -68,6 +68,11 @@ class ConfigurationTest extends TestCase
|
|||||||
'type' => 'App\Foo',
|
'type' => 'App\Foo',
|
||||||
'areas' => ['internal'],
|
'areas' => ['internal'],
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'alias' => 'Foo1',
|
||||||
|
'type' => 'App\Foo',
|
||||||
|
'groups' => ['group1', ['group2', 'parent' => 'child3']],
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]]);
|
]]);
|
||||||
@ -102,6 +107,12 @@ class ConfigurationTest extends TestCase
|
|||||||
'groups' => [],
|
'groups' => [],
|
||||||
'areas' => ['internal'],
|
'areas' => ['internal'],
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'alias' => 'Foo1',
|
||||||
|
'type' => 'App\Foo',
|
||||||
|
'groups' => ['group1', ['group2', 'parent' => 'child3']],
|
||||||
|
'areas' => [],
|
||||||
|
],
|
||||||
], $config['models']['names']);
|
], $config['models']['names']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user