forked from loafle/openapi-generator-original
[PHP-SYMFONY] Debug Date and DateTime Assert (#16874)
This commit is contained in:
parent
cdbb73aa55
commit
cb85358aa5
@ -42,11 +42,11 @@
|
|||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
{{^isContainer}}
|
{{^isContainer}}
|
||||||
{{#isDate}}
|
{{#isDate}}
|
||||||
* @Assert\Date()
|
* @Assert\Type("\Date")
|
||||||
* @Type("DateTime<'Y-m-d'>")
|
* @Type("DateTime<'Y-m-d'>")
|
||||||
{{/isDate}}
|
{{/isDate}}
|
||||||
{{#isDateTime}}
|
{{#isDateTime}}
|
||||||
* @Assert\DateTime()
|
* @Assert\Type("\DateTime"))
|
||||||
* @Type("DateTime")
|
* @Type("DateTime")
|
||||||
{{/isDateTime}}
|
{{/isDateTime}}
|
||||||
{{^isDate}}
|
{{^isDate}}
|
||||||
|
@ -71,7 +71,7 @@ class Order
|
|||||||
/**
|
/**
|
||||||
* @var \DateTime|null
|
* @var \DateTime|null
|
||||||
* @SerializedName("shipDate")
|
* @SerializedName("shipDate")
|
||||||
* @Assert\DateTime()
|
* @Assert\Type("\DateTime"))
|
||||||
* @Type("DateTime")
|
* @Type("DateTime")
|
||||||
*/
|
*/
|
||||||
protected ?\DateTime $shipDate = null;
|
protected ?\DateTime $shipDate = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user