Liking cljdoc? Tell your friends :D

com.timezynk.domain.validation

This namespace is copied from com.timezynk.domain.util.schema.validation.

This namespace is copied from com.timezynk.domain.util.schema.validation.
raw docstring

<not=clj

(<not= a b)

<or=clj

(<or= a b)

>not=clj

(>not= a b)

>or=clj

(>or= a b)

all-ofclj

(all-of & rules)

All conditions should be true (AND)

All conditions should be true (AND)
raw docstring

checkclj

(check fun attr-name msg)

Comparecljprotocol

eq*clj

(eq* x y)

x equals y

x equals y

lt*clj

(lt* x y)

x is less than y?

x is less than y?

lt=*clj

(lt=* x y)

x is less than or equals y

x is less than or equals y

date-time?clj

(date-time? x)

date?clj

(date? x)

eqclj


escape-optional?clj

(escape-optional? property property-value all-optional?)

get-check-fnclj

(get-check-fn all-optional? k property-name property-definition)

hasclj

(has & properties)

has-notclj

(has-not & attributes)

ltclj


lt=clj


no-presence-ofclj

(no-presence-of attribute)

none-ofclj

(none-of & rules)

No condition should be true

No condition should be true
raw docstring

object-id?clj

(object-id? x)

one-ofclj

(one-of & rules)

One condition should be true (XOR)

One condition should be true (XOR)
raw docstring

only-theseclj

(only-these & valid-attributes)

only these are valid attributes

only these are valid attributes
raw docstring

some-ofclj

(some-of & rules)

At least one condition should be true (OR)

At least one condition should be true (OR)
raw docstring

time?clj

(time? x)

timestamp?clj

(timestamp? x)

validate-doc!clj

(validate-doc! rule doc)

Validates document. Expects a packed document with validated properties. Throws an exception if the validation does not pass.

Validates document. Expects a packed document with validated properties. Throws an exception if the validation does not pass.
raw docstring

validate-json-input!clj

(validate-json-input! properties doc)

Validates each property. Expects to validate if a json structure can be packed.

Validates each property. Expects to validate if a json structure can be packed.
raw docstring

validate-propertiesclj

(validate-properties all-optional? properties doc)

validate-properties!clj

(validate-properties! all-optional? properties doc)

Validates each property. Expects a packed doc.. Throws an exception if the validation does not pass.

Validates each property. Expects a packed doc..
Throws an exception if the validation does not pass.
raw docstring

validate-propertyclj

(validate-property property all-optional? val)

validate-schemaclj

(validate-schema all-optional? schema m)

Deprecated

Deprecated
raw docstring

validate-schema!clj

(validate-schema! all-optional?
                  pack-params
                  schema
                  exclude-from-validation
                  params)

Deprecated. Validates and pack. Throws an exception if the validation is not passed

Deprecated. Validates and pack. Throws an exception if the validation is not passed
raw docstring

validate-typeclj

(validate-type attr-name type-name)

validate-vectorclj

(validate-vector all-optional? attr-name rule vector-value)

validation-keysclj

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

× close