mirror of
https://github.com/metosin/reitit.git
synced 2025-12-25 03:08:25 +00:00
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:
parent
f1d26791fc
commit
b316840ea0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue