Open pradippatil opened 1 year ago
looking into this - doesn't seem like we support it properly
Its unclear to me how these work in pact-jvm. If anyone else is able to investigate how this should be supported in pact4s, that would be great. I don't quite have the bandwidth to look into this issue right now.
Hello,
I am facing some challenges while using generators with Pact4s on the Provider side for verification. My current issue is that I am using
withStateChangeFunction
, which isProviderState => Unit
, and I am not able to return anything. I am struggling with how to inject some of the data that gets generated on the Provider side, such as auto-generated ids.I have included the consumer pact that I want to verify, and I am specifically looking to generate the
taskId
on the Provider side and inject it into the pact. Here is the relevant portion of the consumer pact:I would appreciate any guidance on how to achieve this. Thank you in advance for your help!