Skip to content

Commit

Permalink
Show empty array in examples - Fix #366
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Nov 16, 2021
1 parent fff9c29 commit 4351be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camel/Output/OutputEndpointData.php
Expand Up @@ -175,7 +175,7 @@ public static function getFileParameters(array $parameters): array
foreach ($parameters as $name => $example) {
if ($example instanceof UploadedFile) {
$files[$name] = $example;
} else if (is_array($example)) {
} else if (is_array($example) && !empty($example)) {
[$subFiles, $subRegulars] = static::getFileParameters($example);
foreach ($subFiles as $subName => $subExample) {
$files[$name][$subName] = $subExample;
Expand Down

0 comments on commit 4351be8

Please sign in to comment.