Skip to content

Commit

Permalink
change oneOf overwriting check
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Jan 8, 2024
1 parent f5d0469 commit 2eedbb3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Processors/OpenApi31Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,22 @@ public function __invoke(Analysis $analysis)
$annotations = $analysis->getAnnotationsOfType(OA\Schema::class);

foreach ($annotations as $annotation) {
$this->processReference($annotation);
$this->processNullable($annotation);
$this->processExclusiveMinimum($annotation);
$this->processExclusiveMaximum($annotation);
}
}

private function processReference(OA\Schema $annotation): void
{
if (Generator::isDefault($annotation->ref)) {
return;
}


}

private function processNullable(OA\Schema $annotation): void
{
$nullable = $annotation->nullable;
Expand All @@ -40,7 +50,7 @@ private function processNullable(OA\Schema $annotation): void
}

if (!Generator::isDefault($annotation->ref)) {
if (!property_exists($annotation, 'oneOf')) {
if (!Generator::isDefault($annotation->oneOf)) {
return;
}

Expand Down

0 comments on commit 2eedbb3

Please sign in to comment.