Liking cljdoc? Tell your friends :D

malli.error


-concatclj/s

(-concat x y)
source

-errorclj/s

(-error e)
source

-error-valueclj/s

(-error-value {:keys [errors value]} options)
source

-error?clj/s

(-error? x)
source

-fillclj/s

(-fill x i fill)
source

-getclj/s

(-get x k)
source

-maskedclj/s

(-masked mask x y)
source

-most-similar-toclj/s

(-most-similar-to keys key known-keys)
source

-pred-min-max-error-fnclj/s

(-pred-min-max-error-fn {:keys [pred message]})
source

-pushclj/s

(-push x k v fill)
source

-push-inclj/s

(-push-in a v [p & ps] e)
source

-replace-inclj/s

(-replace-in a v [p & ps] e fill)
source

-resolve-direct-errorclj/s

(-resolve-direct-error _ error options)
source

default-errorsclj/s

source

error-messageclj/s

(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})
source

error-pathclj/s

(error-path error)
(error-path error options)
source

error-valueclj/s

(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`)
sourceraw docstring

humanizeclj/s

(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`
sourceraw docstring

with-error-messageclj/s

(with-error-message error)
(with-error-message error options)
source

with-error-messagesclj/s

(with-error-messages explanation)
(with-error-messages explanation {f :wrap :or {f identity} :as options})
source

with-spell-checkingclj/s

(with-spell-checking explanation)
(with-spell-checking explanation {:keys [keep-likely-misspelled-of]})
source

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

× close