(blank-specification)
Returns an empty map, this is simply an (in?)convenience function which allows for more expressive chaining.
Returns an empty map, this is simply an (in?)convenience function which allows for more expressive chaining.
(conditions-met specification)
Returns a vector of conditional attributes whose conditions have been met. These conditions are expressed as Clojure functions, so they allow for limitless complexity.
Returns a vector of conditional attributes whose conditions have been met. These conditions are expressed as Clojure functions, so they allow for limitless complexity.
(decide-attribute attr)
(decide-attribute attr specification)
Dispatch function for making decisions from attributes on a spec. See documentation in disultory.decision for more information.
Dispatch function for making decisions from attributes on a spec. See documentation in disultory.decision for more information.
(generate specification)
Recursively generate data from a specification. First, the function decides a value for each attribute, then it calls itself with a list of conditional attributes whose conditions have been met until either all conditional attributes have been resolved or all conditions are false.
Recursively generate data from a specification. First, the function decides a value for each attribute, then it calls itself with a list of conditional attributes whose conditions have been met until either all conditional attributes have been resolved or all conditions are false.
(with-attribute parent id type & args)
Helper function for adding attributes to the parent specification. See documentation in disultory.spec for more information.
Helper function for adding attributes to the parent specification. See documentation in disultory.spec for more information.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close