Liking cljdoc? Tell your friends :D

soothe.core


defclj/s

(def kw-spec|sym-pred fn|message)

Define a message for a given spec or a predicate. Arguments:

  • either a keyword (spec) or a qualified symbol (for a predicate);
  • either a string or 1-arg function that takes a problem map and returns a message.
Define a message for a given spec or a predicate.
Arguments:
- either a keyword (spec) or a qualified symbol (for a predicate);
- either a string or 1-arg function that takes a problem map and returns a message.
sourceraw docstring

def-manyclj/s

(def-many key->messages)

Define multiple messages at once. Takes a map of sym/keyword => message/function values.

Define multiple messages at once.
Takes a map of sym/keyword => message/function values.
sourceraw docstring

explainclj/s

(explain spec value)

Prints the formatted output of explain-data.

Prints the formatted output of explain-data.
sourceraw docstring

explain-dataclj/s

(explain-data spec value)

Like s/explain-data: takes a spec and a value and returns a map with the problem list. Each problem has clear message found by either a predicate or a spec.

Like s/explain-data: takes a spec and a value
and returns a map with the problem list. Each problem
has clear message found by either a predicate or a spec.
sourceraw docstring

explain-strclj/s

(explain-str spec value)

Like explain, but returns the captured output as a string.

Like explain, but returns the captured output as a string.
sourceraw docstring

undefclj/s

(undef kw-spec|sym-pred)

Undefine a message for the given sym/kw.

Undefine a message for the given sym/kw.
sourceraw docstring

undef-allclj/s

(undef-all)

Undefine all the known messages.

Undefine all the known messages.
sourceraw docstring

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

× close