spec-validate.predicates

*default-phone-number-region-code*

dynamic

absolute-url?

Returns true if the provided value is a string representing an absolute URL,
else returns false.

boolean?

Returns true if the provided value is a boolean, else returns false.

content?

Returns true if the provided value is a string containing non-whitespace
characters, else returns false.

currency-amount?

Returns true if the provided value is a string representing a currency
amount, else returns false.

currency-code?

Returns true if the provided value is a string representing a currency
code, else returns false.

digits?

Returns true if the provided value is a string containing only the digits
0-9, else returns false.

email-address?

Returns true if the email address is valid, based on RFC 2822. Email
addresses containing quotation marks or square brackets are considered
invalid, as this syntax is not commonly supported in practise. The domain of
the email address is not checked for validity.

integer?

Returns true if the provided value is an integer, else returns false.

iso8601-datetime?

Returns true if the provided value is a string representing an ISO8601
datetime, else returns false.

length-equal-to-10?

length-equal-to-1?

length-equal-to-2?

length-equal-to-3?

length-equal-to-4?

length-equal-to-5?

length-equal-to-6?

length-equal-to-7?

length-equal-to-8?

length-equal-to-9?

length-equal-to?

(length-equal-to? length)

length-greater-than-10?

length-greater-than-1?

length-greater-than-2?

length-greater-than-3?

length-greater-than-4?

length-greater-than-5?

length-greater-than-6?

length-greater-than-7?

length-greater-than-8?

length-greater-than-9?

length-greater-than?

(length-greater-than? length)

length-less-than-10?

length-less-than-1?

length-less-than-2?

length-less-than-3?

length-less-than-4?

length-less-than-5?

length-less-than-6?

length-less-than-7?

length-less-than-8?

length-less-than-9?

length-less-than?

(length-less-than? length)

negative?

Returns true if the provided value is a positive number or a string
representing a positive number, else returns false.

not-empty?

Returns true if the provided value has a count of at least 1,
else returns false.

phone-number?

Returns true if the provided value is a string representing a phone number,
else returns false. By default, treats phone numbers as being from
Great Britain, however the default region can be overridden with
`*default-phone-number-region-code*`.

positive?

Returns true if the provided value is a positive number or a string
representing a positive number, else returns false.

postcode?

Returns true if the provided value is a string representing a UK postcode,
else returns false.

string?

Returns true if the provided value is a string, else returns false.

uuid-v4?

Returns true if the provided value is a string representing a v4 UUID,
else returns false.

zero?

Returns true if the provided value is zero or a string representing zero,
else returns false.