From bd7577a949387ebe6a5cba0159a2a8f2eb6dc669 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sun, 11 Feb 2018 21:40:48 +0200 Subject: [PATCH] fix example --- doc/ring/coercion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ring/coercion.md b/doc/ring/coercion.md index 8e8fa6ec..6d584781 100644 --- a/doc/ring/coercion.md +++ b/doc/ring/coercion.md @@ -81,7 +81,7 @@ Here's an full example for applying coercion with Reitit, Ring and Schema: :parameters {:query {:x s/Int} :body {:y s/Int} :path {:z s/Int}} - :responses {200 {:schema {:total PositiveInt}}} + :responses {200 {:body {:total PositiveInt}}} :handler (fn [{:keys [parameters]}] (let [total (+ (-> parameters :query :x) (-> parameters :body :y)