Generates a type that will match one of the provided alternative schemas
Generates a schema object that matches any data type.
Generates a schema object that matches an array data type.
Validates a value against a schema and throws if validation fails.
Generates a schema object that matches a Buffer data type (as well as the strings which will be converted to Buffers).
Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via bool().
Converts literal schema definition to joi schema object (or returns the same back if already a joi schema object).
Generates a schema object that matches a date type (as well as a JavaScript date string or number of milliseconds).
Generates a schema object that matches a function type.
Generates a schema object that matches a number data type (as well as strings that can be converted to numbers).
Generates a schema object that matches an object data type (as well as JSON strings that parsed into objects).
Generates a reference to the value of the named key.
Generates a schema object that matches a string data type. Note that empty strings are not allowed by default and must be enabled with allow('').
Validates a value using the given schema and options.