Helper functions to easily validate values in API functions.
Checks if specified value is a number.
Validates that a variable is a string with at least one or more characters (as specified).
Checks if value1 and value2 are equal. Typically used to validate that two fields match (e.g. password confirmation).
Checks that two values are not equal.
Checks if specified value is null. Useful for null-checks in form validation or before-write checks.
Checks if specified value is not null.
Checks for first name and last name in string.
Validates if string is an email.
Throws a validation error if condition is false. Handy to use for validating arguments in an API function.
Checks if value is a date type.
Checks if value is a datetime type.
Checks if specified value is an int.