You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
exportclassUserCreateDto{
@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