class-validator
class-validator copied to clipboard
fix: The first parameter of IsAlphanumeric and IsAlpha decorator does not have correct prompt
Description
As the title says, the first parameter of IsAlphanumeric and IsAlpha decorator does not have correct prompt.
When I use the above two decorators, I need to customize the error prompt information, but I must fill in the first parameter, but the first parameter does not give me a correct value prompt. I need to find a suitable value range under the validator library according to the error prompt, which is a waste of time.
The validator library provides the type of the correct value range of the first parameter of the two decorators by default