Using FluentValidator to validate children of properties
问题 I want to use FluentValidation to validate some classes one of which is only used as a property on another... but I never directly create the child class so I want to test validation from the parent level. This may be unnecessary / crazy So for example I have public class Parent { public string Text {get;set;} public Child Child {get;set;} } public class Child { public string Text {get;set;} } and public class ParentValidator : AbstractValidator<Parent> { public ParentValidator() { RuleFor(p=