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

Object data and contains and in membership operators #55

Closed
jg-rp opened this issue Mar 8, 2024 · 1 comment
Closed

Object data and contains and in membership operators #55

jg-rp opened this issue Mar 8, 2024 · 1 comment
Labels
enhancement New feature or request JSONPath

Comments

@jg-rp
Copy link
Owner

jg-rp commented Mar 8, 2024

The non-standard contains and in membership operators currently work for any sequence.

if operator == "in" and isinstance(right, Sequence):
return left in right
if operator == "contains" and isinstance(left, Sequence):
return right in left

We should change that so they work for any container (any mapping is a container).

@jg-rp
Copy link
Owner Author

jg-rp commented Jul 6, 2024

Closed by #63.

@jg-rp jg-rp closed this as completed Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request JSONPath
Projects
None yet
Development

No branches or pull requests

1 participant