(email & {:keys [error] :or {error nil}})
Returns an error if given value is not an email.
Returns an error if given value is not an email.
(enum & {:keys [values error] :or {error "Invalid value."}})
(equals-to & {:keys [field error] :or {error nil}})
(exclude-nils errors)
(is-boolean & {:keys [error] :or {error "This field must be a boolean."}})
(is-number & {:keys [error] :or {error "This field must be a number."}})
(is-string & {:keys [error] :or {error "This field must be a string."}})
(mark-unknown-fields errors unknown-fields strict)
(max-len & {:keys [length error] :or {error nil}})
(min-len & {:keys [length error] :or {error nil}})
(normalize-field field)
(normalize-validators validators)
(noval val)
(required &
{:keys [required? error]
:or {required? true error "This field is required."}})
(validate data schema)
(validate data schema {strict :strict patch :patch})
(validate-against-schema data schema)
(validate-single value validators all-values field)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close