Ability to set rules on collection elements.
See original GitHub issueIt would be nice to be able to recursively add rules on collection item properties.
RuleForEach(s => s.Administrators)
.RuleFor(c => c.Username,
r => r.NotEmpty()
.EmailAddress());
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Quality Specific Collection Elements
Oracle Quality provides you with three predefined collection element types, Attribute, Variable, and Reference, which are available as selections on a list of ......
Read more >Set (mathematics)
A set is the mathematical model for a collection of different things; a set contains elements or members, which can be mathematical objects...
Read more >How to Write the Elements of a Set from Rules or Patterns
The two main methods for describing a set are roster and rule (or set-builder). A roster is a list of the elements in...
Read more >Power set - Definition, Examples, Formula, Properties and ...
A power set is the collection of all subsets, empty set and the original set itself. Learn power set notation, cardinality and properties...
Read more >Business Rules Collection Data Types
Rule Editor divides all collections and arrays into two major categories: 1) collections of reference types and 2) collections of value types. Value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, this is doable. Instead of using RuleForEach, use RuleFor with a ChildCollectionValidatorAdaptor. This will keep the correct property names and indicies.
Useable like this:
Is this functionality added?