mirror of
https://github.com/metosin/reitit.git
synced 2026-01-24 15:19:01 +00:00
test: Add missing protocol method implementation
This commit is contained in:
parent
218f05972e
commit
e4c53a64e2
1 changed files with 4 additions and 1 deletions
|
|
@ -80,12 +80,15 @@
|
||||||
(defrecord NoOpCoercion []
|
(defrecord NoOpCoercion []
|
||||||
coercion/Coercion
|
coercion/Coercion
|
||||||
(-get-name [_] :no-op)
|
(-get-name [_] :no-op)
|
||||||
|
(-get-options [_])
|
||||||
(-get-apidocs [_ _ {:keys [parameters responses] :as info}])
|
(-get-apidocs [_ _ {:keys [parameters responses] :as info}])
|
||||||
|
(-get-model-apidocs [_ _ _ _])
|
||||||
(-compile-model [_ model _] model)
|
(-compile-model [_ model _] model)
|
||||||
(-open-model [_ spec] spec)
|
(-open-model [_ spec] spec)
|
||||||
(-encode-error [_ error] error)
|
(-encode-error [_ error] error)
|
||||||
(-request-coercer [_ type spec] (fn [value format] value))
|
(-request-coercer [_ type spec] (fn [value format] value))
|
||||||
(-response-coercer [this spec] (coercion/request-coercer this :response spec {})))
|
(-response-coercer [this spec] (coercion/request-coercer this :response spec {}))
|
||||||
|
(-query-string-coercer [_ _]))
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
(doseq [coercion [nil (->NoOpCoercion) spec/coercion]]
|
(doseq [coercion [nil (->NoOpCoercion) spec/coercion]]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue