Skip to content

Commit 86ad6fc

Browse files
committed
Fixed bug nelmio#2287
1 parent 2d45e53 commit 86ad6fc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ModelDescriber/Annotations/SymfonyConstraintAnnotationReader.php

-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ private function processPropertyAnnotations($reflection, OA\Property $property,
8282
return;
8383
}
8484

85-
if (!Generator::isDefault($property->default)) {
86-
return;
87-
}
88-
8985
$existingRequiredFields = Generator::UNDEFINED !== $this->schema->required ? $this->schema->required : [];
9086
$existingRequiredFields[] = $propertyName;
9187

0 commit comments

Comments
 (0)