Skip to content

Improved handling for validation in field groups #17

@Shadowfiend

Description

@Shadowfiend

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 the withBoxedConverter function has to explicitly invoke S.error to mark the client error.
  • The converter may produce an object of type T that is usually valid but isn't valid in the context of this form. This T may need further validation in this particular context.

Two things would help here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions