From b316840ea0dae671aa9c5e91210985fe72b69c3e Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Wed, 30 Aug 2023 08:39:36 +0300 Subject: [PATCH] fix: compile instead of -compile-model in malli.cljc -compile-model now takes a vector of models, so (-compile-model this model nil) fails. Just use compile directly like master does. --- modules/reitit-malli/src/reitit/coercion/malli.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/reitit-malli/src/reitit/coercion/malli.cljc b/modules/reitit-malli/src/reitit/coercion/malli.cljc index eb97457e..89dce54c 100644 --- a/modules/reitit-malli/src/reitit/coercion/malli.cljc +++ b/modules/reitit-malli/src/reitit/coercion/malli.cljc @@ -136,7 +136,7 @@ (into (empty parameters) (for [[k v] parameters] - [k (coercion/-compile-model this v nil)]))}) + [k (compile v options)]))}) (if responses {::swagger/responses (into @@ -145,7 +145,7 @@ [k (as-> response $ (set/rename-keys $ {:body :schema}) (if (:schema $) - (update $ :schema #(coercion/-compile-model this % nil)) + (update $ :schema compile options) $))]))}))) ;; :openapi handled in reitit.openapi/-get-apidocs-openapi (throw