use specific jms/serializer annotation on simple date fields (#10048)

This commit is contained in:
BigBadBassMan 2021-08-19 07:30:46 +02:00 committed by GitHub
parent 67cba32d3a
commit cf4523fa1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@
{{^isContainer}} {{^isContainer}}
{{#isDate}} {{#isDate}}
* @Assert\Date() * @Assert\Date()
* @Type("DateTime") * @Type("DateTime<'Y-m-d'>")
{{/isDate}} {{/isDate}}
{{#isDateTime}} {{#isDateTime}}
* @Assert\DateTime() * @Assert\DateTime()