DataAnnotationsValidatorRecursive icon indicating copy to clipboard operation
DataAnnotationsValidatorRecursive copied to clipboard

Validate Root IEnumerable

Open phil000 opened this issue 3 years ago • 0 comments

Hello,

The TryValidateObjectRecursive method doesn't work if the root object itself is IEnumerable.

e.g. List<ThingToValidate> stuff

TryValidateObjectRecursive(stuff) does zero validation. You need a property of the root object that is enumerable.

phil000 avatar Jul 07 '21 04:07 phil000