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.
This commit is contained in:
Joel Kaasinen 2023-08-30 08:39:36 +03:00
parent f1d26791fc
commit b316840ea0

View file

@ -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