Correctly map the Pact Interaction Description property (#1331)

* Correctly map the Pact Interaction Description property

* Update src/WireMock.Net.Minimal/Serialization/PactMapper.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* post

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Stef Heyenrath
2025-07-18 08:41:04 +02:00
committed by GitHub
parent aeb15725e4
commit 020cc15420
8 changed files with 107 additions and 10 deletions

View File

@@ -42,8 +42,7 @@ internal static class PactMapper
var interaction = new Interaction
{
Description = mapping.Description,
ProviderState = mapping.Title,
Description = !string.IsNullOrWhiteSpace(mapping.Description) ? mapping.Description : mapping.Title ?? string.Empty,
Request = MapRequest(mapping.Request, path),
Response = MapResponse(mapping.Response)
};