Closed jay-youngn closed 4 years ago
Add attribute format for Date Annotation Validator If write annotation:
format
/** * @Date(format="YmdHi") */
Will only passes value like 202001020039
202001020039
We have a payment center will building by Swoft. And now this validator methods are relatively lax. I needs to check the parameters strictly.
Nothing
Commited to private repository
Compare: https://github.com/swoft-cloud/swoft-validator/compare/master...ginnerpeace:master
What does this PR do?
Add attribute
format
for Date Annotation Validator If write annotation:Will only passes value like
202001020039
Motivation
We have a payment center will building by Swoft. And now this validator methods are relatively lax. I needs to check the parameters strictly.
More
Additional Notes
Nothing