fix missing previous recursive call

This commit is contained in:
Asmir Mustafic 2019-01-26 21:03:07 +01:00
parent 0fb5d7afa2
commit fd7b5e1679
No known key found for this signature in database
GPG Key ID: 5408354D09CC64FC
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class JMSModelDescriber implements ModelDescriberInterface, ModelRegistryAwareIn
}
$property->setType('array');
$this->describeItem($nestedType, $property->getItems(), $groups);
$this->describeItem($nestedType, $property->getItems(), $groups, $previousGroups);
} elseif ('array' === $type['name']) {
$property->setType('object');
$property->merge(['additionalProperties' => []]);

View File

@ -48,7 +48,7 @@ class JMSFunctionalTest extends WebTestCase
'type' => 'object',
'properties' => [
'picture' => [
'$ref' => '#/definitions/JMSPicture',
'$ref' => '#/definitions/JMSPicture2',
],
],
], $this->getModel('JMSChatUser')->toArray());