Drop-in replacement for clojure.spec.alpha, with
human-readable expound
function
Drop-in replacement for clojure.spec.alpha, with human-readable `expound` function
(custom-printer opts)
Returns a printer, configured via opts
Returns a printer, configured via opts
(def k spec-form)
(def k spec-form error-message)
Like clojure.spec.alpha/def, but optionally takes a human-readable error message (will only be used for predicates) e.g. 'should be a string'
Like clojure.spec.alpha/def, but optionally takes a human-readable error message (will only be used for predicates) e.g. 'should be a string'
(expound spec form)
Given a spec and a value, either prints a success message or prints a human-readable explanation as a string.
Given a spec and a value, either prints a success message or prints a human-readable explanation as a string.
(expound-str spec form)
Given a spec and a value, either returns success message or returns a human-readable explanation as a string.
Given a spec and a value, either returns success message or returns a human-readable explanation as a string.
(ns-qualify s)
Qualify symbol s by resolving it or using the current ns.
Qualify symbol s by resolving it or using the current *ns*.
(printer explain-data)
Prints explain-data in a human-readable format
Prints explain-data in a human-readable format
(safe-sort-by key-fn comp coll)
Same as sort-by, but if an error is raised, returns the original unsorted collection
Same as sort-by, but if an error is raised, returns the original unsorted collection
(specs problems)
Given a collection of problems, returns the specs for those problems, with duplicates removed
Given a collection of problems, returns the specs for those problems, with duplicates removed
(value-in-context opts spec-name form path value)
Given a form and a path into that form, returns a string that helps the user understand where that path is located in the form
Given a form and a path into that form, returns a string that helps the user understand where that path is located in the form
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close