class-validator icon indicating copy to clipboard operation
class-validator copied to clipboard

feat: Make `minDate` and `maxDate` support specifying dynamic date

Open CodyTseng opened this issue 3 years ago • 0 comments

Description

Make minDate and MaxDate accept a function as the date parameter. The function return a date and will be executed when validate.

Checklist

  • [x] the pull request title describes what this PR does (not a vague title like Update index.md)
  • [x] the pull request targets the default branch of the repository (develop)
  • [x] the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • [x] tests are added for the changes I made (if any source code was modified)
  • [x] documentation added or updated
  • [x] I have run the project locally and verified that there are no errors

Fixes

fixes #1691

CodyTseng avatar Jul 11 '22 08:07 CodyTseng