OK, so about this one, I have bad news. Marko worked on it but we couldn't find a way to support it properly. Defining the tolerance per constraint is not a very good idea as it would be cumbersome to add them everywhere. But the big point is that you can't really define a global tolerance as, depending on the type, the tolerance should be different. Typically, for YearMonth, the tolerance should be one month whereas for LocalDateTime, you would probably want a few ms only. We drafted a few ideas in the PR but we are not very happy about them either so for now, your best bet is to override the builtin validators with your own ones. Closing this one for now. If you can come up with better ideas than what we exposed in the PR and rejected, we are all hears . |