UUID is case sensitive
typerat opened this issue · 0 comments
typerat commented
Hi,
I noticed that the UUID validation fails if the UUID is not lower-case.
From https://tools.ietf.org/html/rfc4122#section-3
The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input.
I think the schema validation should treat all data as input, so case insensitive.
This regex (with (?i)
) should fix the problem:
^(?i)[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$