themis.core documentation
navigate
(navigate t coordinate-vec)
Fetch the data from within a data structure given coordinates.
If the data structure is not extended to Navigable, try `get-in`.
Note: Tuck our internal protocols behind a function for consumption
preckon
`preckon` is `pvalidation` by another name.
It exists only to make code using Themis as data generation more readable.
See also: `pvalidation`
pvalidation
(pvalidation t rule-set & {:keys [merge-fn]})
Like `validation`, but will create the validation-seqs in parallel via
`pvalidation-seq` - which is based on the number of recognized cores.
Note: :validation-seq-fn is ignored in this call.
pvalidation-seq
(pvalidation-seq t rule-set)
Like `validation-seq`, but chunks rules based on the number of
available cores, and validates the chunks in parallel.
raw-validation
(raw-validation t coordinate-vec validation-fn opt-map)
Create a response vector for a validation call,
given the original data structure, the coordinates,
the validation function, and the validation optional arg map
reckon
`reckon` is `validation` by another name.
It exists only to make code using Themis as data generation more readable.
See also: `validation`
validate-vec
(validate-vec t validation-vec)
Given a single validation rule,
pull apart the constituents and apply a `raw-validation`,
returning back the validation result vector
validation
(validation t rule-set & opts)
Validate a data structure, `t`,
against validation query/rule-set.
The rule-set will be normalized if it is not already.
Note: By default everything is returned in a map, keyed by
the coordinate vector.
Multiple validation results are conj'd together in a vector.
You can optionally pass in a custom :merge-fn or :validation-seq-fn to process
the validation and tailor the results
validation-seq
(validation-seq t rule-set)
Create a lazy sequence of validating a given data structure
against a validation rule-set vector/seq.
The resulting seq is of `(coordinate validation-result)` tuples/seq
validation-seq->map
(validation-seq->map validation-seq)
Transform the results of a validation seq into a hashmap