Closed mitchkyle-reify closed 1 year ago
An alternative to thinking of this as "dummy references" with ::sm/dummy
we could think of them as "self references" and call the key ::sm/self
. This wouldn't be a functional difference, just a semantic one.
@mitchkyle-reify I wanted to check in on this, were you able to accomplish what you needed?
Yes, my use case is satisfied by fixing the bug with self references #88 thanks for checking in.
Add the ability to generate non-nil values for references in spec-gen using
:reifyhealth.specmonstah.core/dummy
.The use case I have for this is I have a table with a composite key primary key (id and version) and I need to be able to insert values into it that reference other row ids in same table but still generate the ids for ones that do not reference another row.
With this patch I satisfy my use case in the following way:
There might be a better way to solve this, I'm open to ideas.