fix example

This commit is contained in:
Tommi Reiman 2018-02-11 21:40:48 +02:00
parent 32fb3ca294
commit bd7577a949

View file

@ -81,7 +81,7 @@ Here's an full example for applying coercion with Reitit, Ring and Schema:
:parameters {:query {:x s/Int} :parameters {:query {:x s/Int}
:body {:y s/Int} :body {:y s/Int}
:path {:z s/Int}} :path {:z s/Int}}
:responses {200 {:schema {:total PositiveInt}}} :responses {200 {:body {:total PositiveInt}}}
:handler (fn [{:keys [parameters]}] :handler (fn [{:keys [parameters]}]
(let [total (+ (-> parameters :query :x) (let [total (+ (-> parameters :query :x)
(-> parameters :body :y) (-> parameters :body :y)