This namespace is copied from com.timezynk.domain.util.schema.validation.
This namespace is copied from com.timezynk.domain.util.schema.validation.
(<not= a b)
(<or= a b)
(>not= a b)
(>or= a b)
(all-of & rules)
All conditions should be true (AND)
All conditions should be true (AND)
(check fun attr-name msg)
(eq* x y)
x equals y
x equals y
(lt* x y)
x is less than y?
x is less than y?
(lt=* x y)
x is less than or equals y
x is less than or equals y
(date-time? x)
(date? x)
(escape-optional? property property-value all-optional?)
(get-check-fn all-optional? k property-name property-definition)
(has & properties)
(has-not & attributes)
(no-presence-of attribute)
(object-id? x)
(one-of & rules)
One condition should be true (XOR)
One condition should be true (XOR)
(only-these & valid-attributes)
only these are valid attributes
only these are valid attributes
(some-of & rules)
At least one condition should be true (OR)
At least one condition should be true (OR)
(time? x)
(timestamp? x)
(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.
(validate-interval-params! {:keys [params]})
(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.
(validate-properties all-optional? properties doc)
(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.
(validate-property property all-optional? val)
(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
(validate-type attr-name type-name)
(validate-vector all-optional? attr-name rule vector-value)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close