Issues with filters and projections #172
Unanswered
springcomp
asked this question in
Q&A
Replies: 1 comment
-
The more I think of this, the more I’m convinced that it is to be entirely expected for the filter expression to return an error. Indeed the What do you think ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m currently assessing the following behaviour.
Given the following JSON:
The following expression yields the following result:
[?stack==''].branch[?starts_with(@, 'one')]
->invalid-type
In contrast, the following similar expression returns the following result:
[].branch[?starts_with(@, 'one')]
->[ [ "one/" ], [] ]
The tension is that both expressions are similart in construct and should, IMHO, return the same result.
Either a valid result or the same error.
As I’m trying to iterate on some implementations, and fix some issues, I would like to include a fix for this issue, either way.
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions