Extend -compile-model for reitit.coercsion.spec

This commit is contained in:
Jonas Östlund 2024-05-21 13:49:52 +02:00
parent 4e85cb14c5
commit f1ade4b089

View file

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