Open
Description
First of all, thanks for the awesome validation solution! I use class-validator in my NestJS setup. Now I want to know if and how it is possible to check if two values match with eachother. Let's say I have a dto
setup like this:
export class UserCreateDto {
@IsString()
@IsNotEmpty()
firstName: string;
@IsEmail()
emailAddress: string;
@DoesMatch(o => o.emailAddress === o.emailAddressConfirm) // <---- check if email's match
@IsEmail()
emailAddressConfirm: string;
}