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

add ArraySize Decorator

Open lou2013 opened this issue 6 months ago • 0 comments

Description

add arraySize function and ArraySize decorator to check if an array length matches exactly the size passed

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 #2496

lou2013 avatar Aug 03 '24 05:08 lou2013