mirror of
https://github.com/metosin/reitit.git
synced 2026-02-02 02:30:35 +00:00
fixed malli create example
This commit is contained in:
parent
26c4ebc645
commit
1e76ea8114
1 changed files with 7 additions and 4 deletions
|
|
@ -49,11 +49,14 @@ Failing coercion:
|
|||
Using `create` with options to create the coercion instead of `coercion`:
|
||||
|
||||
```clj
|
||||
|
||||
(require '[malli.util :as mu])
|
||||
|
||||
(reitit.coercion.malli/create
|
||||
{:transformers {:body {:default default-transformer-provider
|
||||
:formats {"application/json" json-transformer-provider}}
|
||||
:string {:default string-transformer-provider}
|
||||
:response {:default default-transformer-provider}}
|
||||
{:transformers {:body {:default reitit.coercion.malli/default-transformer-provider
|
||||
:formats {"application/json" reitit.coercion.malli/json-transformer-provider}}
|
||||
:string {:default reitit.coercion.malli/string-transformer-provider}
|
||||
:response {:default reitit.coercion.malli/default-transformer-provider}}
|
||||
;; set of keys to include in error messages
|
||||
:error-keys #{:type :coercion :in :schema :value :errors :humanized #_:transformed}
|
||||
;; schema identity function (default: close all map schemas)
|
||||
|
|
|
|||
Loading…
Reference in a new issue