From 451b286f1db51676a519e75c29545ff7844de2aa Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 14 Nov 2025 14:16:48 +0200 Subject: [PATCH] doc: add brief docs for configuring humanized error messages --- doc/coercion/malli_coercion.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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.