(explain spec value)
(explain spec value opts)
Like spec explain, but uses lingo printer
Like spec explain, but uses lingo printer
(explain-data* {:as explain-data :clojure.spec.alpha/keys [value]}
{:as opts
:keys [highlight? group-missing-keys? group-or-problems? path?
message?]})
(explain-printer ed)
(explain-printer {:as _ed :clojure.spec.alpha/keys [problems]}
{:as _opts :keys [colors? highlight? header?]})
Like spec explain, but uses lingo printer
Like spec explain, but uses lingo printer
(explain-str spec x)
(explain-str spec x opts)
Like spec explain-str, but uses lingo printer
Like spec explain-str, but uses lingo printer
(set-explain-printer!)
(set-explain-printer! opts)
Sets explain printer globally for all specs
Sets explain printer globally for all specs
(set-pred-error! k f)
Set conforming spec spec-ptn
for matching/binding values for later
message impl/formating via f bindings
Set conforming spec `spec-ptn` for matching/binding values for later message impl/formating via `f bindings`
(set-spec-error! spec msg)
Set error message for spec
(keyword, ident, s-expr (pred)) with msg
Set error message for `spec` (keyword, ident, s-expr (pred)) with `msg`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close