1
Indicate when response filter (JSONPath/XPath) input is invalid/non-existent
Source: Kong/insomnia#3707 · opened by @yozlet
Given that the response filter is evaluated on every keypress, it should be possible to tell whether the JSONPath/XPath/whatever expression is in one of these three states while typing:
1. Incorrect/unprocessable syntax
2. Syntactically valid, but broken for the current document (e.g. addressing a path that doesn't exist in the doc, so returns [] or similar)
3. Useful (returns any nodes at all)
For my uses, I see states 1 & 2 as effectively identical in that I need to fix the filter input. Right now, the only indication that I'm in either state is that the Response Preview just shows [] or similar, and that's bad for the reasons discussed in #1259.
It would be great to have a a visual indicator or decoration for these states (e.g. changing text colour, or adding a red dotted underline, or changing the background colour), as well as making that state queryable by the rest of the app (for #1259, maybe others).
1. Incorrect/unprocessable syntax
2. Syntactically valid, but broken for the current document (e.g. addressing a path that doesn't exist in the doc, so returns [] or similar)
3. Useful (returns any nodes at all)
For my uses, I see states 1 & 2 as effectively identical in that I need to fix the filter input. Right now, the only indication that I'm in either state is that the Response Preview just shows [] or similar, and that's bad for the reasons discussed in #1259.
It would be great to have a a visual indicator or decoration for these states (e.g. changing text colour, or adding a red dotted underline, or changing the background colour), as well as making that state queryable by the rest of the app (for #1259, maybe others).
No pledges yet. Be the first to back this.
Comments
Similar requests
Use JMESPath instead of or in addition to JSONPath (JSONPath sucks.)
15 votes · 0 comments
JSONPath/XPath access to Environment Variables
1 vote · 0 comments
[Feature Request] Add XPath 2.0 support for XML response filtering
4 votes · 0 comments
Active JSONPath filter not obvious
2 votes · 0 comments
Turn on / off the JSONPath expression
4 votes · 0 comments
No comments yet.