Hey there, <https://docs.pact.io/getting_started/m...
# general
t
Hey there, https://docs.pact.io/getting_started/matching#random-data---avoid-it instructs to not use random data. Does this apply to examples generated by the pact generators as well?
m
I would avoid random data if you can. Contracts previously verified won't be pre verified for newer versions if you do
r
Contracts should be verified on the shape of the payloads, not on the values. Generators are safe to use, they only replace the values at runtime with random values of the same type.
👍 1
t
Okay thanks. I think my problem is that I use a custom implementation of the reify method to generate the example request from the matchers, which will cause new field values to be generated each time. But I can probably integrate something to remove the randomization in the custom implementation.
👍 1