Fork me on GitHub
#clojure-spec
<
2016-11-10
>
yonatanel09:11:38

Is there something like prismatic schema coercions but with clojure.spec?

dominicm09:11:48

Conformers?

yonatanel10:11:07

Cool, thanks!

vikeri11:11:37

Do I always have to specify my generators with with-gen in the same spot as where I define the spec itself? Or could I assoc a generator later in say, a ns that is only used for testing? I am aware of that stest/check takes the :gen argument but I would like to have it while working in the REPL as well. I could solve this by overwriting the sdef but would like to know if there was a standard way.

Alex Miller (Clojure team)13:11:16

You can use instrument to override generators at test time

vikeri15:11:36

Does anyone else encounter infinite loops when trying to spec a lazy sequence even though one uses every instead of coll-of?

jrheard15:11:45

in clj or cljs?

jrheard15:11:10

yeah, occasionally when i instrument (or is it check?) certain bits of my code in cljs, i see spec hang indefinitely

jrheard15:11:17

can’t reliably reproduce it

jrheard15:11:23

<— unhelpful sorry

jrheard15:11:56

been a month or two since i tried to dig into it last time

vikeri15:11:11

Alright, I had a spec that was failing, when I updated my spec it worked again...