diff --git a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache index 553ce48874d..f3855009609 100644 --- a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache @@ -43,7 +43,7 @@ {{^isContainer}} {{#isDate}} * @Assert\Date() - * @Type("DateTime") + * @Type("DateTime<'Y-m-d'>") {{/isDate}} {{#isDateTime}} * @Assert\DateTime()