From 78aba57d2d4ce27299a5026fad7effbff2fa01ed Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 14 Nov 2025 14:58:52 +0200 Subject: [PATCH] doc: document configuring malli registry --- 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 4b05e721..73f751ac 100644 --- a/doc/coercion/malli_coercion.md +++ b/doc/coercion/malli_coercion.md @@ -109,3 +109,16 @@ Malli humanized error messages can be configured using `:options :errors`: ``` See the malli docs for more info. + +## Custom registry + +Malli registry can be configured conveniently via `:options :registry`: + +```clj +(require '[malli.core :as m]) + +(reitit.coercion.malli/create + {:options + {:registry {:registry (merge (m/default-schemas) + {:my-type :string})}}}) +```