Skip to content

Improve call for "all validators pass" #101

@javier-godoy

Description

@javier-godoy

If I want to test whether all validators pass, I have to write

service.getValidators(DeletionValidator.class).stream().allMatch(v -> v.validate(dto).isEmpty())

It should be something shorter, maybe

service.test(DeletionValidator.class, dto)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions