mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #1339] [MERGED] Fixes an issue with matching JSON bodies as bytes #1347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1339
Author: @smfields
Created: 7/27/2025
Status: ✅ Merged
Merged: 8/2/2025
Merged by: @StefH
Base:
master← Head:sfields/fix-body-bytes-issue📝 Commits (3)
c138618Fixes an issue with matching JSON bodies as bytes4ab09cdAdding tests for exact object matching0f42fafSimplify the check for byte data📊 Changes
2 files changed (+79 additions, -10 deletions)
View changed files
📝
src/WireMock.Net.Shared/Matchers/Helpers/BodyDataMatchScoreCalculator.cs(+3 -7)📝
test/WireMock.Net.Tests/RequestMatchers/RequestMessageBodyMatcherTests.cs(+76 -3)📄 Description
Fixes an issue where body payloads would fail to be matched if the matcher was created using a
byte[]value and the bytes represented valid JSON.References
Submitter checklist
#help-contributingor a project-specific channel like#wiremock-java🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.