Skip to content

Commit

Permalink
Support null openApiRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemN committed Sep 20, 2021
1 parent 3cb38b0 commit 118213a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Render/RenderOpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function __construct(ContainerInterface $generatorLocator, OpenApiRendere
{
$this->generatorLocator = $generatorLocator;
foreach ($openApiRenderers as $openApiRenderer) {
if (null === $openApiRenderer) {
continue;
}

$this->openApiRenderers[$openApiRenderer->getFormat()] = $openApiRenderer;
}
}
Expand Down

0 comments on commit 118213a

Please sign in to comment.