MinDuration/MaxDuration validation message (english) broken for zero duration.

Description

A @DurationMin() or @DurationMax() of zero days/hours/mins/seconds/millis/nanos will report a (default/english) validation error message of

Which doesn’t really make sense to the user.

Current ValidationMessages.properties definition is

Environment

None

Activity

Show:

Terry MoschouJuly 20, 2022 at 1:49 AM

Sure, I’ll aim to raise one sometime this week.

Guillaume SmetJuly 18, 2022 at 9:58 AM

We should probably just display 0 if everything is 0. Would you be interested in providing a PR?

Fixed

Details

Assignee

Reporter

Labels

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Guillaume Smet
Marko Bekhta
Terry Moschou

Fix versions

Priority

Created July 18, 2022 at 7:46 AM
Updated February 18, 2025 at 8:10 AM
Resolved February 18, 2025 at 8:10 AM