diff --git a/src/Processors/AugmentProperties.php b/src/Processors/AugmentProperties.php index 25c7e69e..e430a93b 100644 --- a/src/Processors/AugmentProperties.php +++ b/src/Processors/AugmentProperties.php @@ -97,7 +97,7 @@ protected function augmentType(Analysis $analysis, OA\Property $property, Contex } // ok, so we possibly have a type or ref - if (!Generator::isDefault($property->ref) && $typeMatches[2] === '' && $property->nullable) { + if (!Generator::isDefault($property->ref) && $typeMatches[2] === '' && !Generator::isDefault($property->nullable) && $property->nullable) { $refKey = $this->toRefKey($context, $type); $property->oneOf = [ $schema = new OA\Schema([