-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonPathMatcher does not match json body nested objects #965
Comments
@timurnes https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
@StefH Update: It doesn't. Please take a look on my next comment |
@StefH
|
@timurnes BTW you know that you also can use a https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#dynamic-linq-linqmatcher Which is much easier to use:
|
@StefH |
@timurnes |
Describe the bug
JsonPathMatcher example in official documentation does not match json body with nested fields:
Pattern:
$.things[?(@.name == 'RequiredThing')]
Json:
{ "things": { "name": "RequiredThing" } }
First-level fields match works correctly
Expected behavior:
JsonPathMatcher correctly matches json body with nested fields
Test to reproduce
Other related info
The same pattern works correctly with another json from example:
{ "things": [ { "name": "RequiredThing" }, { "name": "Wiremock" } ] }
The text was updated successfully, but these errors were encountered: