The validation error printed to console is '["Too short, minimum length is 6 characters, but actual is 5"]
The ${args.value.length} in return Too short, minimum length is ${args.constraints[ 0 ]} characters, but actual is ${args.value.length} is NOT reflecting the true length of the input.
Yeah, I've encountered the bug with @MinLength a year ago, I thought it was patched. Anyway - it's related to class-validator so as it's a peer dependency I'm closing the issue.
Hi, I have the following:
Validation is done as shown below:
The validation error printed to console is '["Too short, minimum length is 6 characters, but actual is 5"]
The ${args.value.length} in return
Too short, minimum length is ${args.constraints[ 0 ]} characters, but actual is ${args.value.length}
is NOT reflecting the true length of the input.Is this a bug?