Apply statement template rules for generation
Apply statement template rules for generation
(apply-rules-gen partial-statement raw-rules & {:keys [seed]})
Given a partial statement and rules, attempt to make the statement satisfy the rules. Additional options like :seed help do this deterministically.
Given a partial statement and rules, attempt to make the statement satisfy the rules. Additional options like :seed help do this deterministically.
(follows-rule? statement
{:keys [location selector any all none presence] :as rule}
&
[matches])
simple predicate check for a rule being satisfied by a statement a la https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation. You can pass in matches for efficiency's sake.
simple predicate check for a rule being satisfied by a statement a la https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation. You can pass in matches for efficiency's sake.
(match-rule statement {:keys [location selector] :as rule})
The matching logic from https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation returns a tuple, a list of matched values from location, selector, containing the key ::unmatchable if a selector cannot be matched.
The matching logic from https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation returns a tuple, a list of matched values from location, selector, containing the key ::unmatchable if a selector cannot be matched.
(parse-rule* {:keys [location selector] :as rule})
Parse paths in a rule
Parse paths in a rule
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close