mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Extend -compile-model for reitit.coercsion.spec
This commit is contained in:
parent
4e85cb14c5
commit
f1ade4b089
1 changed files with 2 additions and 0 deletions
|
|
@ -122,6 +122,8 @@
|
|||
(= (count model) 1) (first model)
|
||||
;; here be dragons, best effort
|
||||
(every? map? model) (apply mm/meta-merge model)
|
||||
;; all elements are the same
|
||||
(apply = model) (first model)
|
||||
;; fail fast
|
||||
:else (ex/fail! ::model-error {:message "Can't merge nested clojure specs", :spec model}))
|
||||
name))
|
||||
|
|
|
|||
Loading…
Reference in a new issue