-
Notifications
You must be signed in to change notification settings - Fork 828
Open
Labels
type: featureIssues related to new features.Issues related to new features.
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;
}
klinkov, SeongBrave, Eraledm, joelcoronah, PieroMacaluso and 19 more
Metadata
Metadata
Assignees
Labels
type: featureIssues related to new features.Issues related to new features.