From 96c2764de6ce3b46c97ff837d6db5b591c98d93b Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Fri, 14 Feb 2020 16:27:45 +0200 Subject: [PATCH] Update server.clj --- examples/ring-malli-swagger/src/example/server.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ring-malli-swagger/src/example/server.clj b/examples/ring-malli-swagger/src/example/server.clj index 55c66bc6..1a5d7d89 100644 --- a/examples/ring-malli-swagger/src/example/server.clj +++ b/examples/ring-malli-swagger/src/example/server.clj @@ -55,13 +55,13 @@ {:swagger {:tags ["math"]}} ["/plus" - {:get {:summary "plus with spec query parameters" + {:get {:summary "plus with malli query parameters" :parameters {:query [:map [:x int?] [:y int?]]} :responses {200 {:body [:map [:total int?]]}} :handler (fn [{{{:keys [x y]} :query} :parameters}] {:status 200 :body {:total (+ x y)}})} - :post {:summary "plus with spec body parameters" + :post {:summary "plus with malli body parameters" :parameters {:body [:map [:x int?] [:y int?]]} :responses {200 {:body [:map [:total int?]]}} :handler (fn [{{{:keys [x y]} :body} :parameters}]