class-validator
class-validator copied to clipboard
fix: The first parameter of IsAlphanumeric and IsAlpha decorator does not have correct prompt
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:checkpasses -
npm run lint:checkpasses
-
- [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:


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