Hi,
I have this object:
```
class Person
{
public List<string> Names { get; set; }
...
}
```
and would like to define validation rule that validates each name on empty string, and outputs following message:
Name '[IndexOfItem]' is empty -> Name '1' is empty, please populate.
With the current API around collection validation, it's difficult to get to the actual index of item in a collection.
Can you please support this in the api, or point me to an example as to how to do this with custom messages.
Thanks.
Stevo
I have this object:
```
class Person
{
public List<string> Names { get; set; }
...
}
```
and would like to define validation rule that validates each name on empty string, and outputs following message:
Name '[IndexOfItem]' is empty -> Name '1' is empty, please populate.
With the current API around collection validation, it's difficult to get to the actual index of item in a collection.
Can you please support this in the api, or point me to an example as to how to do this with custom messages.
Thanks.
Stevo