doc: add brief docs for configuring humanized error messages

This commit is contained in:
Joel Kaasinen 2025-11-14 14:16:48 +02:00
parent eb06404f1e
commit 451b286f1d
No known key found for this signature in database

View file

@ -96,3 +96,16 @@ Using `create` with options to create the coercion instead of `coercion`:
;; malli options ;; malli options
:options nil}) :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.