Module cuttlefish_validator

Data Types

raw_validator()

raw_validator() = {validator, string(), string(), validator_fun()}

validator()

validator() = #validator{name = string(), description = string(), func = function()}

validator_fun()

validator_fun() = fun((any()) -> boolean())

Function Index

description/1
func/1
is_validator/1
name/1
parse/1
parse_and_merge/2
replace/2

Function Details

description/1

description(V::validator()) -> string()

func/1

func(V::validator()) -> function()

is_validator/1

is_validator(V::any()) -> boolean()

name/1

name(V::validator()) -> string()

parse/1

parse(X::raw_validator()) -> validator() | cuttlefish_error:error()

parse_and_merge/2

parse_and_merge(ValidatorSource::raw_validator(), Validators::[validator()]) -> [validator() | cuttlefish_error:error()]

replace/2

replace(Validator::validator(), ListOfValidators::[validator()]) -> [validator()]


Generated by EDoc