<< back to sanity-clause index
Some validation functions that can be used with fields to make sure data has certain properties.
Exported symbols:
Checks that some value has been supplied. Note: this won't work well with boolean values because NIL is falsey.
Checks that value is a string. If specified, checks that min-length <= (length value) <= max-length.
Accepts a value as an integer or string. If value is a string, interpret it as a value with base- radix. If specified, make sure min <= value <= max.
Takes a list of validators in the form of keywords and turns them into living function references.
Find a validator function by keyword-spec and return the function represented by the spec unless it's already a function.