:constraints
again :) This time the constraint is :coll
. This is used by the clojure.spec visitor to generate data correctly::id
6, and sure enough you can see that the value of :favorite-ids
is a vector containing the post's :id
. But what if you want to generate multiple posts? Here's how you'd do that:{:refs {:favorite-ids 3}}
- this tells Specmonstah that this user will have 3 :favorite-ids
.:favorite-ids
? Well my friend, wonder no more: