Skip to content

Commit

Permalink
fix-2187: Check if schema is available (#2188)
Browse files Browse the repository at this point in the history
* Update NullablePropertyProcessor.php

Check if default is set

* style fix
  • Loading branch information
DjordyKoert committed Jan 11, 2024
1 parent f43a4ba commit e1405ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Processor/NullablePropertyProcessor.php
Expand Up @@ -16,6 +16,10 @@ final class NullablePropertyProcessor implements ProcessorInterface
{
public function __invoke(Analysis $analysis): void
{
if (Generator::isDefault($analysis->openapi->components) || Generator::isDefault($analysis->openapi->components->schemas)) {
return;
}

/** @var OA\Schema[] $schemas */
$schemas = $analysis->openapi->components->schemas;

Expand Down

0 comments on commit e1405ef

Please sign in to comment.