Hi, just playing around with this and our clojure spec generators.
It would be handy if :set could somehow be fed into the generator so I could do: (s/gen schema {[...] #(gen/return ...)}) for any overrides provided. This would allow generating off a multi-spec without needing a whole separate schema per multi-spec type(s).
e.g. I could do {:count 1 :set {:color :red}} and it would only generate things which must be red.
Hi, just playing around with this and our clojure spec generators.
It would be handy if
:setcould somehow be fed into the generator so I could do:(s/gen schema {[...] #(gen/return ...)})for any overrides provided. This would allow generating off a multi-spec without needing a whole separate schema per multi-spec type(s).e.g. I could do
{:count 1 :set {:color :red}}and it would only generate things which must be red.