fluent-validator
fluent-validator copied to clipboard
only first filed of car's tow same validator was validated
FluentValidator.checkAll()
.configure(new SimpleRegistry())
.on(car)
.doValidate(new SimpleValidateCallback());
class car may like this:
class car{
...
@FluentValidate(SimpleDataValidator.class)
private String startTime;
@FluentValidate(SimpleDataValidator.class)
private String endTime;
...
}
When I use this method, only first filed of car's tow same validator was validated, validator worked on startTime, ignored endTime.
Sorry, I am a little busy recently, can you make sure which strategy is enabled? if failfast is enabled, only first error will be returned.
@neoremind Yes, policy is FailFast. on the case of the first field is correct , the second field is wrong. But the framework didn't find the second wrong field and just ignored this field.
I will look into this issue.