FIx coercion docs

This commit is contained in:
Tommi Reiman 2017-12-03 17:52:28 +02:00
parent 1f2bac40db
commit 3a9feb0784

View file

@ -200,9 +200,9 @@ To plug in new validation engine, see the
(defprotocol Coercion (defprotocol Coercion
"Pluggable coercion protocol" "Pluggable coercion protocol"
(get-name [this] "Keyword name for the coercion") (get-name [this] "Keyword name for the coercion")
(compile [this model name] "Compiles a coercion model")
(get-apidocs [this model data] "???") (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") (encode-error [this error] "Converts error in to a serializable format")
(request-coercer [this type model] "Returns a `value format => value` request coercion function") (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")) (response-coercer [this model] "Returns a `value format => value` response coercion function"))