Merge pull request #19427 from TheOnlyRew/patch-1

[Joi] Add missing Joi.string().uuid()
This commit is contained in:
Nathan Shively-Sanders
2017-09-06 14:14:03 -07:00
committed by GitHub

View File

@@ -519,6 +519,11 @@ export interface StringSchema extends AnySchema<StringSchema> {
* Requires the string value to be a valid GUID.
*/
guid(options?: GuidOptions): StringSchema;
/**
* Alias for `guid` -- Requires the string value to be a valid GUID
*/
uuid(options?: GuidOptions): StringSchema;
/**
* Requires the string value to be a valid hexadecimal string.