Skip to content

break validation chain on first error #638

@kpadu

Description

@kpadu

I apologize in advanced if I missed this somewhere in the docs, but say I have the following code:

check('foo')
    .exists().withMessage('some message')
    .custom(...)

Is there a way that I can prevent custom from running if the exists check fails?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions