diff --git a/doc/coercion/malli_coercion.md b/doc/coercion/malli_coercion.md index b193db11..4b05e721 100644 --- a/doc/coercion/malli_coercion.md +++ b/doc/coercion/malli_coercion.md @@ -96,3 +96,16 @@ Using `create` with options to create the coercion instead of `coercion`: ;; malli options :options nil}) ``` + +## Configuring humanize error messages + +Malli humanized error messages can be configured using `:options :errors`: + +```clj +(reitit.coercion.malli/create + {:options + {:errors (assoc malli.error/default-errors + :malli.core/missing-key {:error/message {:en "MISSING"}})}}) +``` + +See the malli docs for more info.