mirror of
https://github.com/metosin/reitit.git
synced 2026-02-25 10:32:24 +00:00
FIx coercion docs
This commit is contained in:
parent
1f2bac40db
commit
3a9feb0784
1 changed files with 2 additions and 2 deletions
|
|
@ -200,9 +200,9 @@ To plug in new validation engine, see the
|
|||
(defprotocol Coercion
|
||||
"Pluggable coercion protocol"
|
||||
(get-name [this] "Keyword name for the coercion")
|
||||
(compile [this model name] "Compiles a coercion model")
|
||||
(get-apidocs [this model data] "???")
|
||||
(make-open [this model] "Returns a new map model which doesn't fail on extra keys")
|
||||
(compile-model [this model name] "Compiles a coercion model")
|
||||
(open-model [this model] "Returns a new map model which doesn't fail on extra keys")
|
||||
(encode-error [this error] "Converts error in to a serializable format")
|
||||
(request-coercer [this type model] "Returns a `value format => value` request coercion function")
|
||||
(response-coercer [this model] "Returns a `value format => value` response coercion function"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue