Skip to content

Workaround for returning a validation errors details back to browser? #1161

@dkulichkin

Description

@dkulichkin

Currently validation in Finch is based on predicate functions, causing further a NonValid error to be thrown without a chance to add details to it in order to help people to correct it...
https://finagle.github.io/finch/user-guide.html#validation

One might of course throw his own typed exceptions from these boolean preicates but that would be a misusing of the initially supposed way. Is there any more elegant solutions for approaching that? Thanks.

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