You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting True back even though one of the emails in the list is invalid. To verify I tested it the values without the list and it is returning the correct validation result.
Is it possible to validate a struct with a list as one of its fields? Or do I have to write a validator with a custom function to map over each value in the list to validate it?
The text was updated successfully, but these errors were encountered:
I am having trouble using vex to validate a field in a struct that consists of a list of values.
For example If I have the following struct:
user = %{emails_list: ["[email protected]","incorrect@email"]}
and then I use vex.valid? to validate the emails:
I am getting True back even though one of the emails in the list is invalid. To verify I tested it the values without the list and it is returning the correct validation result.
Is it possible to validate a struct with a list as one of its fields? Or do I have to write a validator with a custom function to map over each value in the list to validate it?
The text was updated successfully, but these errors were encountered: