|
@@ -9,7 +9,7 @@ discard block |
|
|
block discarded – undo |
|
9
|
9
|
* file that was distributed with this source code. |
|
10
|
10
|
*/ |
|
11
|
11
|
|
|
12
|
|
-declare(strict_types=1); |
|
|
12
|
+declare(strict_types = 1); |
|
13
|
13
|
|
|
14
|
14
|
namespace ApiPlatform\Core\Swagger\Serializer; |
|
15
|
15
|
|
|
@@ -146,7 +146,7 @@ discard block |
|
|
block discarded – undo |
|
146
|
146
|
$parametersMemory = []; |
|
147
|
147
|
$pathOperation['parameters'] = []; |
|
148
|
148
|
|
|
149
|
|
- foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
|
149
|
+ foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
150
|
150
|
if (true === $hasIdentifier) { |
|
151
|
151
|
$pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string']; |
|
152
|
152
|
$parametersMemory[] = $identifier; |
|
@@ -445,7 +445,7 @@ discard block |
|
|
block discarded – undo |
|
445
|
445
|
$definitionKey = $this->getDefinitionKey($resourceMetadata->getShortName(), (array) ($serializerContext[AbstractNormalizer::GROUPS] ?? [])); |
|
446
|
446
|
|
|
447
|
447
|
if (!isset($definitions[$definitionKey])) { |
|
448
|
|
- $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
|
448
|
+ $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
449
|
449
|
$definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext); |
|
450
|
450
|
} |
|
451
|
451
|
|