Skip to content

Conversation

@BodrickLight
Copy link
Contributor

Adding a mapping with a description to WireMockServer.WithMapping did not include the description to the resulting IRespondWithAProvider, which means that calling WireMockServer.SavePact does not populate the description in the contract file.

This PR includes the description when mapping from MappingModel to IRespondWithAProvider.

Submitter checklist

  • Recommended: Join WireMock Slack to get any help in #help-contributing or a project-specific channel like #wiremock-java
  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected
  • For new features, there's necessary documentation in this pull request or in a subsequent PR to wiremock.org

Adding a mapping with a description to `WireMockServer.WithMapping`
did not include the description to the resulting
`IRespondWithAProvider`, which means that calling
`WireMockServer.SavePact` does not populate the description in the
contract file.

This PR includes the description when mapping from `MappingModel` to
`IRespondWithAProvider`.
@StefH StefH merged commit 70a9180 into wiremock:master Jun 14, 2025
6 checks passed
@StefH StefH added bug feature and removed bug labels Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants