Liking cljdoc? Tell your friends :D

com.yetanalytics.persephone.template


create-rule-predicateclj/s

(create-rule-predicate {:keys [location selector] :as rule})

Given rule, create a function that returns true or false when validating Statements against it.

Given `rule`, create a function that returns true or false when
validating Statements against it.
sourceraw docstring

create-rule-validatorclj/s

(create-rule-validator {:keys [location selector] :as rule})

Given rule, create a function that will validate new Statements against the rule.

Given `rule`, create a function that will validate new Statements
against the rule.
sourceraw docstring

create-template-predicateclj/s

(create-template-predicate template ?statement-ref-fns)

Like create-template-validator, but returns a predicate that takes a Statement as an argument and returns a boolean.

Like `create-template-validator`, but returns a predicate that takes
a Statement as an argument and returns a boolean.
sourceraw docstring

create-template-validatorclj/s

(create-template-validator template ?statement-ref-fns)

Given template, return a validator function that takes a Statement as an argument and returns an nilable seq of error data.

Given `template`, return a validator function that takes a
Statement as an argument and returns an nilable seq of error data.
sourceraw docstring

find-valuesclj/s

(find-values stmt loc-path)
(find-values stmt loc-path select-path)

Given a Statement stmt, a parsed location JSONPath loc-path, and an optional selector JSONPath select-path, return a vector of the selected values. Unmatchable values are returned as nils.

Given a Statement `stmt`, a parsed location JSONPath `loc-path`,
and an optional selector JSONPath `select-path`, return a vector
of the selected values. Unmatchable values are returned as nils.
sourceraw docstring

parse-locatorclj/s

(parse-locator locator)

Parse the locator path.

Parse the `locator` path.
sourceraw docstring

parse-selectorclj/s

(parse-selector selector)

Conform and parse the selector path to be used on values returned by a locator.

Conform and parse the `selector` path to be used on values returned
by a locator.
sourceraw docstring

predicate-specclj/s

source

validation-result-specclj/s

source

validator-specclj/s

source

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

× close