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

fix: The first parameter of IsAlphanumeric and IsAlpha decorator does not have correct prompt

Open ufec opened this issue 3 years ago • 0 comments

The first parameter of IsAlphanumeric and IsAlpha decorator does not have correct prompt

Description

Checklist

  • [x] the pull request title describes what this PR does (not a vague title like Update index.md)
  • [x] I have run the project locally and verified that there are no errors
  • [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

Fixes

fixes #1739

The effect after modifying the parameter type is as follows:

IsAlphanumeric

IsAlpha

We can clearly see which values can be selected for the first parameter

ufec avatar Sep 13 '22 06:09 ufec