Skip to content

fix: json_match assertion now honors the path field. Fixes Issue #29 …#54

Merged
snytkine merged 1 commit into
snytkine:mainfrom
Pulser132:main
Jun 16, 2026
Merged

fix: json_match assertion now honors the path field. Fixes Issue #29 …#54
snytkine merged 1 commit into
snytkine:mainfrom
Pulser132:main

Conversation

@Pulser132

Copy link
Copy Markdown
Contributor

#29

JsonMatchAssertionEvaluator previously ignored assertion.path() and always compared the entire response body. It now resolves the path via ResponseValueExtractor, supporting response.body.json and response.body.json. sub-expressions, matching the behavior already documented in the schema and JsonSchemaAssertionEvaluator.

…kine#29 snytkine#29

JsonMatchAssertionEvaluator previously ignored assertion.path() and always
compared the entire response body. It now resolves the path via
ResponseValueExtractor, supporting response.body.json and
response.body.json.<jsonpath> sub-expressions, matching the behavior already
documented in the schema and JsonSchemaAssertionEvaluator.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.82%. Comparing base (c80892d) to head (9dbeee8).

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #54      +/-   ##
============================================
+ Coverage     92.80%   92.82%   +0.02%     
- Complexity      696      698       +2     
============================================
  Files           115      115              
  Lines          2251     2259       +8     
  Branches        276      277       +1     
============================================
+ Hits           2089     2097       +8     
  Misses           91       91              
  Partials         71       71              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@snytkine snytkine merged commit 9d47ce5 into snytkine:main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants