When accumulating errors using the `Validated` typ...
# arrow
r
When accumulating errors using the
Validated
type, what if I want to aggregate errors per field. Should I use something like this?
Copy code
interface LoginFormError

sealed class EmailError : LoginFormError {
  object ShouldBeGmail : EmailError()
  // ...
}

sealed class PasswordError : LoginFormError {
  object ShouldContainDigit : PasswordError()
  // ...
}