From 53d9741da0641cdf6dd64ce88eb03e6f4aeebb53 Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Wed, 23 Jun 2021 18:20:45 +0200 Subject: [PATCH] fix(openapi): Collection fields VS property metadata --- .../Restriction/PropertySchemaCollectionRestriction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaCollectionRestriction.php b/src/Core/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaCollectionRestriction.php index 69b960c1359..8a4605ec33e 100644 --- a/src/Core/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaCollectionRestriction.php +++ b/src/Core/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaCollectionRestriction.php @@ -57,7 +57,7 @@ public function create(Constraint $constraint, ApiProperty $propertyMetadata): a $required[] = $field; } - $restriction['properties'][$field] = $this->mergeConstraintRestrictions($baseConstraint, $propertyMetadata); + $restriction['properties'][$field] = $this->mergeConstraintRestrictions($baseConstraint, new ApiProperty()); } if ($required) {