Skip to content

Commit 78aba57

Browse files
committed
doc: document configuring malli registry
1 parent 451b286 commit 78aba57

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

doc/coercion/malli_coercion.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,16 @@ Malli humanized error messages can be configured using `:options :errors`:
109109
```
110110

111111
See the malli docs for more info.
112+
113+
## Custom registry
114+
115+
Malli registry can be configured conveniently via `:options :registry`:
116+
117+
```clj
118+
(require '[malli.core :as m])
119+
120+
(reitit.coercion.malli/create
121+
{:options
122+
{:registry {:registry (merge (m/default-schemas)
123+
{:my-type :string})}}})
124+
```

0 commit comments

Comments
 (0)