-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cover absolute path filter queries #72
Comments
jsonpath-compliance-test-suite/tests/filter.json Lines 573 to 647 in 7bd8532
What we need is absolute singular query tests. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It might be good to add tests for using an absolute path (that is
$
instead of@
) in a filter selector, e.g.$[?$.a==1]
. Currently the filter tests only seem to cover relative paths (@
) or invalid selectors with absolute paths, but not any valid selectors with absolute paths.Might be good to cover:
$[?$]
$[?$.a==1]
(...)
, e.g.$[?($.a==1)]
$[?$==$]
(similar to Add filter test for equality with self #71)$[?@[0] == $[0]]
and$[?$[0] == @[0]]
[0, [0, 1], [1, 2]]
$
is evaluated absolute and not relative, for example:$.a[?$.b==2]
{"a": [{"b": 1}], "b": 2}
What do you think?
The text was updated successfully, but these errors were encountered: