jsonpath-standard / jsonpath-compliance-test-suite

A Compliance Test Suite for the JSONPath Internet Draft
Other
8 stars 6 forks source link

Cover absolute path filter queries #72

Open Marcono1234 opened 5 months ago

Marcono1234 commented 5 months ago

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:

What do you think?

gregsdennis commented 5 months ago

https://github.com/jsonpath-standard/jsonpath-compliance-test-suite/blob/7bd8532dfcccd288bbcaa67b48e5804911991094/tests/filter.json#L573-L647

What we need is absolute singular query tests.