(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})
(error-value explanation)
(error-value explanation {mask :malli.error/mask-valid-values :as options})
Returns the parts of value that are in error. Accepts the following options:
::mask-valid-values
, value to mask valid values with::keep-valid-values
, keep valid values (overrides mask)::accept-error
, function to accept errors::wrap-error
, function to wrap the error map (default: :value
)Returns the parts of value that are in error. Accepts the following options: - `::mask-valid-values`, value to mask valid values with - `::keep-valid-values`, keep valid values (overrides mask) - `::accept-error`, function to accept errors - `::wrap-error`, function to wrap the error map (default: `:value`)
(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 options:
:wrap
, a function of error -> message
, defaulting to :message
:resolve
, a function of explanation error options -> path message
Humanized a explanation. Accepts the following options: - `: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