-
-
Notifications
You must be signed in to change notification settings - Fork 230
Description
Describe the bug
When I generate a Pact-compatible consumer contract based on WireMock.Net traffic, for every interaction, the contract contains an entry for providerState
, but not for description
.
Yet, it is the description
that will show up in PactFlow. It is now empty:

Expected behavior:
I expect the value supplied in the WithTitle()
method to be mapped to a field called description
in the Pact-compatible contract, not to a field called providerState
.
As far as I can see, It's OK to simply change the mapping and leave out the providerState
field altogether, as that isn't used in bidirectional contract testing, anyway. WireMock in Java does the exact same thing (image shows contract generated by WireMock in Java, you can ignore the key
and pending
fields, too):

Test to reproduce
N/A
Other related info
Happy to dive into this and create a PR myself, if you would like me to, @StefH.