Add a buffer parameter to the @PastOrPresent

Description

I'm suggesting a field be added to the @PastOrPresent (and @FutureOrPresent) bean validation annotations that provides a Duration which is a buffer on the time used to determine the clock value of "Present". Possibly something like:

I know that you can provide your own clock provider as explained here but that will impact all clock requests and you may not want all requests with the same duration. Such as if you're validating an Instant, some cases you may want precision to the minute but other cases you may want it to the millisecond.

Environment

None

Status

Assignee

Unassigned

Reporter

Peter Luttrell

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Minor
Configure