mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #993] [MERGED] Update JSONPathMatcher.cs to cover the string path selection to a child #1182
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/993
Author: @DayLightDancer
Created: 8/15/2023
Status: ✅ Merged
Merged: 8/17/2023
Merged by: @StefH
Base:
master← Head:master📝 Commits (6)
7924d0aUpdate JSONPathMatcher.cs to cover the string path selection to a child9ce3236Merge pull request #1 from DayLightDancer/DayLightDancer-patch-13a6c7c6Added unit tests9ed4e8eAddressed the comments3a24669Addressed the comments274c546Update JSONPathMatcher.cs📊 Changes
2 files changed (+132 additions, -3 deletions)
View changed files
📝
src/WireMock.Net/Matchers/JSONPathMatcher.cs(+7 -2)📝
test/WireMock.Net.Tests/Matchers/JsonPathMatcherTests.cs(+125 -1)📄 Description
The .SelectToken method accept string path selection and JSONPath queries. The current code works only for the queries because the result is JObject. When the string path is selected the result is JValue and event with a valid result the code the code doesn't return valued result.
https://www.newtonsoft.com/json/help/html/SelectToken.htm
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.