src/Hydra/ApiDocumentationBuilder.php 1 location
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
$context['serializer_groups'] = $attributes['normalization_context']['groups']; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
if (isset($attributes['denormalization_context']['groups'])) { |
| 117 |
|
$context['serializer_groups'] = isset($context['serializer_groups']) ? array_merge($context['serializer_groups'], $attributes['denormalization_context']['groups']) : $context['serializer_groups']; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
foreach ($this->propertyNameCollectionFactory->create($resourceClass, $context) as $propertyName) { |
| 121 |
|
$propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $propertyName); |
src/Bridge/NelmioApiDoc/Parser/ApiPlatformParser.php 1 location
|
@@ 114-116 (lines=3) @@
|
| 111 |
|
$options['serializer_groups'] = $attributes['normalization_context']['groups']; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
if (isset($attributes['denormalization_context']['groups'])) { |
| 115 |
|
$options['serializer_groups'] = isset($options['serializer_groups']) ? array_merge($options['serializer_groups'], $attributes['denormalization_context']['groups']) : $options['serializer_groups']; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
return $this->getPropertyMetadata($resourceMetadata, $resourceClass, $io, $visited, $options); |
| 119 |
|
} |
src/Swagger/ApiDocumentationBuilder.php 1 location
|
@@ 115-117 (lines=3) @@
|
| 112 |
|
$context['serializer_groups'] = $attributes['normalization_context']['groups']; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
if (isset($attributes['denormalization_context']['groups'])) { |
| 116 |
|
$context['serializer_groups'] = isset($context['serializer_groups']) ? array_merge($context['serializer_groups'], $attributes['denormalization_context']['groups']) : $context['serializer_groups']; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
$definitions[$shortName] = [ |
| 120 |
|
'type' => 'object', |