mirror of
https://github.com/metosin/reitit.git
synced 2026-01-31 10:00:33 +00:00
Compare commits
2 commits
211e434fcf
...
1d7f2cf6f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d7f2cf6f0 | ||
|
|
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