Add UUID validation

Description

I have many cases where I need to validate incoming character values to be properly formatted UUIDs. So I propose the addition of @UUID to validate a character sequence matches the universally unique identifier format as described in RFC 4122 and with some enhanced checks like

  • allowing nil UUIDs

  • checking the UUID version

  • checking the UUID variant / type

  • checking the letter case (lower / upper case only or insensitive)

The UUID class of the Java API sadly does not check everything mentioned above.

References:

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Participants

Daniel Heid

Pull Request

Components

Fix versions

Priority

Created January 9, 2022 at 7:34 PM
Updated February 28, 2022 at 4:39 PM
Resolved February 28, 2022 at 1:59 PM