clojure-spec

Drew Verlee 2021-11-02T15:57:42.029600Z

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) 2021-11-02T15:58:45.030Z

there are several functions that accept an override generator map

Alex Miller (Clojure team) 2021-11-02T15:59:04.030400Z

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

👍 1
Drew Verlee 2021-11-02T15:59:53.031200Z

Thanks alex, I'm reading the docs now.