Skip to content

Commit

Permalink
Merge 8182c86 into 785403f
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimpEreau committed Jan 15, 2021
2 parents 785403f + 8182c86 commit cbdc201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OpenApi/Factory/OpenApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ private function collectPaths(ResourceMetadata $resourceMetadata, string $resour
}

if ($operation['collection']) {
$parameters = array_merge($parameters, $this->getPaginationParameters($resourceMetadata, $operationName), $this->getFiltersParameters($resourceMetadata, $operationName, $resourceClass));
$subresourceMetadata = $this->resourceMetadataFactory->create($resourceClass);
$parameters = array_merge($parameters, $this->getPaginationParameters($resourceMetadata, $operationName), $this->getFiltersParameters($subresourceMetadata, $operationName, $resourceClass));
}
}

Expand Down

0 comments on commit cbdc201

Please sign in to comment.