Open javier-godoy opened 5 days ago
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)
If I want to test whether all validators pass, I have to write
It should be something shorter, maybe