Closed ikitommi closed 6 years ago
Given a Schema (& generator), a can create valid schema values. Two default generators, empty-values, random-values (via clojure.test.check.generators?):
empty-values
random-values
clojure.test.check.generators
(s/defschema Order {:id s/Str, :name (s/maybe s/Str), (s/optional-key :description) s/Str, :rows [{:title s/Str}]}) (generate Order empty-values) ; => {:id "", :name nil, :rows []}
http://blog.getprismatic.com/schema-1-0-released/
Given a Schema (& generator), a can create valid schema values. Two default generators,
empty-values
,random-values
(viaclojure.test.check.generators
?):