-
Notifications
You must be signed in to change notification settings - Fork 72
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
Use JMESPath for Airnode _path reserved parameter #690
Comments
Relates to #507 |
Reminds me of https://docs.paralink.network/developer-guide/paralink-query-language.html
|
I don't see that as a problem if it's a commonly used thing intended for this purpose.
Good point but it does seem heavily used with 6M+ weekly downloads. https://www.npmjs.com/package/jmespath
Agreed. Sure, happy to join the call. I'm not a fan of a particular solution. Just learning to be an Airnode user and it's pretty clear that I would like to be able to manipulate API responses as a requester. This seemed like an easy way to get there. |
This is relevant. jmespath/jmespath.site#65 (comment) |
Closing due to a better solution being looked at. |
Description
It would be powerful if we could pass JMESPath queries (or something similar) in the _path parameter so that JSON responses can be transformed and filtered before the data is put on-chain.
See examples here: https://jmespath.org/examples.html
Version
All
Present Behaviour
Currently _path is processed by a (seemingly) basic query processor.
Expected Behaviour
We should be able to use a more powerful off-the-shelf JSON query language to select data from responses. If the _path value is fed into JMESPath then users would have more control over API responses.
The text was updated successfully, but these errors were encountered: