Skip to content

Generated Pact-compatible consumer contract does not contain description #1330

@basdijkstra

Description

@basdijkstra

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:

Image

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):

Image

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions