Skip to content
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

fix partial match for non dictionary items #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jafaral
Copy link
Contributor

@Jafaral Jafaral commented Jan 19, 2025

currenlty with partial match [{"foo":"foo"}] is considered a subset of [{"foo":"foo"}, {"bar":"bar"}]. However [1] is not considered a subset of [1,2]. This fixes the behavior so that partial match rules apply to non dictionary items within a list.

@Jafaral Jafaral force-pushed the fix-partial-match branch 4 times, most recently from 97bde0d to 33444e8 Compare January 20, 2025 02:20
currenlty with partial match `[{"foo":"foo"}]` is considered a subset of
`[{"foo":"foo"}, {"bar":"bar"}]`. However `[1]` is not considered a subset
of `[1,2]`. This fixes the behavior so that partial match rules apply
to non dictionary items within a list.

Signed-off-by: Jafar Al-Gharaibeh <[email protected]>
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.84%. Comparing base (6345948) to head (6254f8d).
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   59.98%   58.84%   -1.14%     
==========================================
  Files          19       19              
  Lines        5665     5730      +65     
==========================================
- Hits         3398     3372      -26     
- Misses       2267     2358      +91     

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

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.

1 participant