Fork me on GitHub
#clojure-spec
<
2021-08-18
>
misha17:08:07

you can use s/expalain-data and trim output errors as you wish:

(-> (s/explain-data (s/coll-of even?) (range 100))
  (update ::s/problems #(take 10 %)))
(you probably will need to trim ::s/value as well) Or, you can validate each map individually, not as a collection:
(->> (range 100)
  (keep #(s/explain-data even? %))
  (take 3))