Module validators

Source
Expand description

pre-rolled validators for data structures

Functionsยง

is_equal
Check that values are equal
is_max_length
Check that a sequence is at most a certain length
is_min_length
Check that a sequence is at least a certain length
is_required
Check that an option has a value
max
Check that a value is less than a max
min
Check that a value is greater than a value
option_max
Check that an optional value is either none or less than a value
option_min
Check that an optional value is either none or greater than a value