Fork me on GitHub
#clojure-spec
<
2021-11-02
>
Drew Verlee15:11:42

Is it possible to have spec generators for two different contexts? E.g in one i want my user's uuids to be a random uuid, and in another for them always to be the same value.

Alex Miller (Clojure team)15:11:45

there are several functions that accept an override generator map

Alex Miller (Clojure team)15:11:04

so you could swap out at point of use (during exercise, instrumentation, etc)

👍 1
Drew Verlee15:11:53

Thanks alex, I'm reading the docs now.