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
Is there any structure with which to accumulate errors from multiple Results? Say I have a dataclass with three fields and each needs validation, and I'd like to take input and either emit a Result.Ok with an instance of my dataclass, or a Result.Error with a collection of the (one or more) errors from the (failed) validation of the input.
Is there any structure with which to accumulate errors from multiple
Result
s? Say I have a dataclass with three fields and each needs validation, and I'd like to take input and either emit aResult.Ok
with an instance of my dataclass, or aResult.Error
with a collection of the (one or more) errors from the (failed) validation of the input.Something from Scala might looks like...
So I guess I'm looking for something like...
The text was updated successfully, but these errors were encountered: