(error-message error)
(error-message {:keys [schema type] :as error}
{:keys [errors unknown locale default-locale]
:or {errors default-errors unknown true default-locale :en}
:as options})
(humanize explanation)
(humanize {:keys [value errors] :as explanation}
{:keys [wrap resolve]
:or {wrap :message resolve -resolve-direct-error}
:as options})
Humanized a explanation. Accepts the following optitons:
:wrap
, a function of error -> message
, defaulting to :message
:resolve
, a function of explanation error options -> path message
Humanized a explanation. Accepts the following optitons: - `:wrap`, a function of `error -> message`, defaulting to `:message` - `:resolve`, a function of `explanation error options -> path message`
(with-error-messages explanation)
(with-error-messages explanation {f :wrap :or {f identity} :as options})
(with-spell-checking explanation)
(with-spell-checking explanation {:keys [keep-likely-misspelled-of]})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close