diff --git a/src/PropertyDescriber/UuidPropertyDescriber.php b/src/PropertyDescriber/UuidPropertyDescriber.php index cd574a0f6..007ea380a 100644 --- a/src/PropertyDescriber/UuidPropertyDescriber.php +++ b/src/PropertyDescriber/UuidPropertyDescriber.php @@ -20,12 +20,12 @@ class UuidPropertyDescriber implements PropertyDescriberInterface { use NullablePropertyTrait; - public function describe(array $types, OA\Schema $property, array $groups = null) + public function describe(array $types, OA\Schema $property, array $groups = null, ?OA\Schema $schema = null) { $property->type = 'string'; $property->format = 'uuid'; $property->pattern = '^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$'; - $this->setNullableProperty($types[0], $property); + $this->setNullableProperty($types[0], $property, $schema); } public function supports(array $types): bool