This would be useful for validating id params and other places UUIDs are used.
I'll take a PR adding up on string(). No existing library seems to cover that.
Oh wait, there's already a validation for GUIDs. UUID could just be an alias correct then? Or perhaps the other way around since GUIDs are just Microsoft-speak apparently for UUIDs.
I could create a quick pull request for this.
An alias ? Not worth it. After looking at it I'm not sure GUID/UUIDv2/UUIDv4 are differentiable so I'm gonna say we're good.
Oh, and tested Joi.string().guid() against my UUIDs generated by node-uuid and it validates perfectly.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Most helpful comment
Oh, and tested
Joi.string().guid()against my UUIDs generated by node-uuid and it validates perfectly.