mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Compare commits
2 commits
4403a4cc5b
...
c3cb3778d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3cb3778d1 | ||
|
|
78aba57d2d |
1 changed files with 13 additions and 0 deletions
|
|
@ -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})}}})
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue