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

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

ufec avatar Sep 13 '22 06:09 ufec