Skip to content

feat(v7): JSONPath support#243

Merged
khvn26 merged 11 commits intomainfrom
feat/jsonpath-support
Aug 20, 2025
Merged

feat(v7): JSONPath support#243
khvn26 merged 11 commits intomainfrom
feat/jsonpath-support

Conversation

@khvn26
Copy link
Member

@khvn26 khvn26 commented Aug 18, 2025

Contributes to #233.

This adds JSONPath support based on jsonpath_rfc9535 library.

Context value getters are now implemented with cached JSONPath resolvers.
All segment condition properties not compiling to a JSONPath query are assumed to be trait keys.
In case multiple values match the query, the engine picks the first one.
A runtime type check is added to avoid comparing against anything but scalar values.

@khvn26 khvn26 requested review from a team and Zaimwa9 and removed request for a team August 18, 2025 18:11
matthewelwell
matthewelwell previously approved these changes Aug 19, 2025
Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me notwithstanding the CI failure which seems like a 'simple' dependency mismatch.

@github-actions
Copy link

github-actions bot commented Aug 19, 2025

File Coverage Missing
All files 100%

Minimum allowed coverage is 100%

Generated by 🐒 cobertura-action against bfe1065

@khvn26 khvn26 force-pushed the feat/jsonpath-support branch from 88acfac to 3ab4520 Compare August 19, 2025 18:04
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 19, 2025

CodSpeed Performance Report

Merging #243 will degrade performances by 15.35%

Comparing feat/jsonpath-support (bfe1065) with main (5376cb9)

Summary

❌ 1 (👁 1) regressions

Benchmarks breakdown

Benchmark BASE HEAD Change
👁 test_engine_benchmark 42.2 ms 49.8 ms -15.35%

@khvn26 khvn26 requested a review from Zaimwa9 August 20, 2025 15:23
@khvn26 khvn26 merged commit 5b0136f into main Aug 20, 2025
7 checks passed
@khvn26 khvn26 deleted the feat/jsonpath-support branch August 20, 2025 18:35
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.

3 participants