-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Currently field groups have withBoxedConverter, which can return a non-Full Box to indicate validation failures. There are, however, a couple of downsides to this approach:
- The resulting failures have to be manually handled in
onFailure, or thewithBoxedConverterfunction has to explicitly invokeS.errorto mark the client error. - The converter may produce an object of type
Tthat is usually valid but isn't valid in the context of this form. ThisTmay need further validation in this particular context.
Two things would help here:
- Alongside Custom validation attachment points #15, we could define validations with custom attachment points on the post-converted
Ttype. - Alongside Pushing validation side-effects later? #16, we could return a
Failureof the same type that a field would, including attachment point information and error message information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels