Dears,

I meet a problem in valang which is that, how can I validate the collection elements.

for example:

I have a User class which contains a list of addresses.

class User {
List<Address> addressList;
}

class Address {
String name;
String zipCode;
}


I want to use valang validation feature to validate the name of all user's address

I use addressList[0].name as the valang expression is OK, but how can I validate all the elements of the user's addressList.