mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge '3.x'
This commit is contained in:
commit
9de23eb4a5
@ -45,4 +45,14 @@ class JMSComplex
|
||||
* @Serializer\Groups({"list"})
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @Serializer\VirtualProperty
|
||||
* @Serializer\Expose
|
||||
* @Serializer\Groups({"list"})
|
||||
* @OA\Property(ref=@Model(type=JMSUser::class))
|
||||
*/
|
||||
public function getVirtualFriend()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -277,6 +277,7 @@ class JMSFunctionalTest extends WebTestCase
|
||||
'user' => ['$ref' => '#/components/schemas/JMSUser'],
|
||||
'name' => ['type' => 'string'],
|
||||
'virtual' => ['$ref' => '#/components/schemas/JMSUser'],
|
||||
'virtual_friend' => ['$ref' => '#/components/schemas/JMSUser'],
|
||||
],
|
||||
'required' => [
|
||||
'id',
|
||||
|
Loading…
x
Reference in New Issue
Block a user