mirror of
https://github.com/metosin/reitit.git
synced 2026-01-29 17:20:36 +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
|
(into
|
||||||
(empty parameters)
|
(empty parameters)
|
||||||
(for [[k v] parameters]
|
(for [[k v] parameters]
|
||||||
[k (coercion/-compile-model this v nil)]))})
|
[k (compile v options)]))})
|
||||||
(if responses
|
(if responses
|
||||||
{::swagger/responses
|
{::swagger/responses
|
||||||
(into
|
(into
|
||||||
|
|
@ -145,7 +145,7 @@
|
||||||
[k (as-> response $
|
[k (as-> response $
|
||||||
(set/rename-keys $ {:body :schema})
|
(set/rename-keys $ {:body :schema})
|
||||||
(if (:schema $)
|
(if (:schema $)
|
||||||
(update $ :schema #(coercion/-compile-model this % nil))
|
(update $ :schema compile options)
|
||||||
$))]))})))
|
$))]))})))
|
||||||
;; :openapi handled in reitit.openapi/-get-apidocs-openapi
|
;; :openapi handled in reitit.openapi/-get-apidocs-openapi
|
||||||
(throw
|
(throw
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue