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 have created a type called Email and assosiated validations that collect EmailErrror
I have created a type called Password and assosiated validations that collect PasswordError
Now I want to create a type called Creds combining Email and Password and I want to accumulate both EmailErrror and PasswordError.
@tonymorris Thanks for the answer. Unfortunately, it didn't solve the question. Also, I was thinking of doing it in a generic way. Suppose, this Creds is part of even a bigger type such as Data Transaction = Creds Payload and we have errors related to Creds and Payload, mkTransactions should result in accumulation of all errors from Creds (i.e from Email and Password ) and Payload
I have created a type called Email and assosiated validations that collect EmailErrror
I have created a type called Password and assosiated validations that collect PasswordError
Now I want to create a type called Creds combining Email and Password and I want to accumulate both EmailErrror and PasswordError.
Is this possible? The code example is below here.
https://stackoverflow.com/questions/55521575/how-to-compose-errors-using-data-validation
Thank you!
The text was updated successfully, but these errors were encountered: