Open kkorus opened 3 years ago
I have same question
I haven't test it but maybe plainToClass
would work :thinking:
I think that using '// @ts-ignore' to defined 'toValidate.data' maybe make @ValidateNested pass. Because in you code, 'toValidate.data' is a base Object.
My model
first validation: (works): This validation works because
data
property should be definedsecond validation: (does not work): This validation does not work. I have defined
data
property with wrong values. validation result is[]