Back
compile-request-coercers (clj)
(source)function
(compile-request-coercers [_ {:keys [parameters coercion], :as data}] opts)
A router :compile implementation which reads the `:parameters`
and `:coercion` data to both compile the schemas and create compiled coercers
into Match under `:result with the following keys:
| key | description
| ----------|-------------
| `:data` | data with compiled schemas
| `:coerce` | function of `Match -> coerced parameters` to coerce parameters
A pre-requisite to use [[coerce!]].
NOTE: this is not needed with ring/http, where the coercion compilation is
managed in the request coercion middleware/interceptors.