From cf4523fa1b180c035c30a7424b7db967206ee062 Mon Sep 17 00:00:00 2001 From: BigBadBassMan Date: Thu, 19 Aug 2021 07:30:46 +0200 Subject: [PATCH] use specific jms/serializer annotation on simple date fields (#10048) --- .../src/main/resources/php-symfony/model_variables.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()