Yitzchak Ben-ezra

Results 5 comments of Yitzchak Ben-ezra

This is stuck for too much time.. can save a lot effort of writing custom validators which not always work..

this repo is not maintained, I ended up copying the relevant code to my project it worked great

it won't help you guys... this repo is not maintained anymore.. you can copy the code above to your project and use it... I don't see any other solution

this works for us.. doesn't cover all cases - but it's good enough for our needs: ```typescript @IsOptional() @Transform(({ value }) => value?.toLowerCase() === 'true') @IsBoolean() someField: boolean; ```

@Clashsoft this is the difference: ValidateIf - ignore all validations if condition is met IsOptional - allows a field not to be specified when condition is met. but if the...