ValidX v1.1.0 Drops Date-Time Support in @FutureDate and @PastDate Annotations
ValidX version 1.1.0 introduces breaking changes to the @FutureDate and @PastDate annotations, which previously accepted both pure date strings and date-time strings automatically. Starting with this release, both annotations only support pure date formats such as yyyy-MM-dd, and passing a date-time string like '2025-12-31 12:00:00' will cause validation to fail. Developers are advised to audit their codebases for any fields using these annotations with date-time values. The recommended migration path is to switch to the newly introduced @FutureDateTime or @PastDateTime annotations, which are designed specifically for date-time validation with a default pattern of yyyy-MM-dd HH:mm:ss. Alternatively, teams can strip the time component from their data before validation if only the date portion is needed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in