Liking cljdoc? Tell your friends :D

validator.core


emailclj/s

(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.
raw docstring

enumclj/s

(enum & {:keys [values error] :or {error "Invalid value."}})

equals-toclj/s

(equals-to & {:keys [field error] :or {error nil}})

exclude-nilsclj/s

(exclude-nils errors)

is-booleanclj/s

(is-boolean & {:keys [error] :or {error "This field must be a boolean."}})

is-numberclj/s

(is-number & {:keys [error] :or {error "This field must be a number."}})

is-stringclj/s

(is-string & {:keys [error] :or {error "This field must be a string."}})

mark-unknown-fieldsclj/s

(mark-unknown-fields errors unknown-fields strict)

max-lenclj/s

(max-len & {:keys [length error] :or {error nil}})

min-lenclj/s

(min-len & {:keys [length error] :or {error nil}})

normalize-fieldclj/s

(normalize-field field)

normalize-validatorsclj/s

(normalize-validators validators)

novalclj/s

(noval val)

requiredclj/s

(required &
          {:keys [required? error]
           :or {required? true error "This field is required."}})

validateclj/s

(validate data schema)
(validate data schema {strict :strict patch :patch})

validate-against-schemaclj/s

(validate-against-schema data schema)

validate-singleclj/s

(validate-single value validators all-values field)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close