From 37fc06b081d78f16433a3e69ce58c09ccd730419 Mon Sep 17 00:00:00 2001 From: tjalkane <1162417+Koura@users.noreply.github.com> Date: Tue, 4 Aug 2020 21:26:58 +0300 Subject: [PATCH 1/2] Fix: broken ring-malli-swagger example Change example to use recently changed `m/accept` -> `m/walk` and `m/schema-visitor` -> `m/schema-walker` --- 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 1339b38c2..5b0d2537b 100644 --- a/examples/ring-malli-swagger/src/example/server.clj +++ b/examples/ring-malli-swagger/src/example/server.clj @@ -22,9 +22,9 @@ [:map {:registry {::age [:and int? [:> 18]]}} [:age ::age]]) -(malli.core/accept +(malli.core/walk (malli.core/schema sample-request) - (malli.core/schema-visitor identity)) + (malli.core/schema-walker identity)) (defn handle [request] (prn (:parameters request)) From d2bc642ac6c1e89f6a6b0f71d9d785a051dc870e Mon Sep 17 00:00:00 2001 From: tjalkane <1162417+Koura@users.noreply.github.com> Date: Wed, 5 Aug 2020 22:05:52 +0300 Subject: [PATCH 2/2] Remove redundant `malli.core/walk` call --- examples/ring-malli-swagger/src/example/server.clj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/ring-malli-swagger/src/example/server.clj b/examples/ring-malli-swagger/src/example/server.clj index 5b0d2537b..307cfd6ba 100644 --- a/examples/ring-malli-swagger/src/example/server.clj +++ b/examples/ring-malli-swagger/src/example/server.clj @@ -22,10 +22,6 @@ [:map {:registry {::age [:and int? [:> 18]]}} [:age ::age]]) -(malli.core/walk - (malli.core/schema sample-request) - (malli.core/schema-walker identity)) - (defn handle [request] (prn (:parameters request)) {:status 200