Implementing rendering of array and object variables #4244
Unanswered
tjbrockmeyer
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Hi @tjbrockmeyer I think we can imagine a The idea with filters (not yet implemented but in the roadmap) is to be able to use them in template. Actually there are limited tp asserts and captures:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm interested in contributing to this project, and part of my use case for it involves a lot of variables being loaded from a json file. Due to interop with another tool, this file must be json, and so I've created a script to load the paths/values from that file and supply them to hurl as variables. There's a bit of a glaring issue with the usage though. The main target of the HTTP requests is graphql apis, and so the input from the json file is nested objects and arrays (graphql input objects). This makes it quite difficult to work with, as hurl does not render objects and arrays. The only way to get it to work currently is to duplicate the structure from the json file into the hurl file, substituting the variable names in all locations as needed.
I saw this issue: #3514, which sort of sounded like there were some ideas floating around about how to implement this feature. I would like to get the conversation started! Some things I'd like to know:
{{myObject:json}}
will instruct the application to render the value as a json object/array.I'm looking to do some fact finding before getting started or getting too many of my own ideas, so please reach out and let me know. I am willing to spend time writing this feature if we are able to make it to some kind of consensus.
Beta Was this translation helpful? Give feedback.
All reactions