-
Notifications
You must be signed in to change notification settings - Fork 472
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
Support templating more complex captures into JSON request bodies #2152
Comments
Hi @colinwd, For this enhancement, we will have to make sure that:
Before implementing, we can update this issue with real usecase/concrete example that we will use for integration testing. |
I found this issue because we upgraded from Hurl version 2 to version 4 and now our response body content cant be rendered anymore. Have there been some changes in how the response is handled? [Captures] Output in version 2: e654bfe8-1195-44e2-9f56-bb9ec83fe14e |
This must be related to #1469
|
Thank you very much! That solved it 👍 |
Problem to solve
While we can easily capture complex variables via jsonpath, the ability to use them is limited at the moment:
Output:
Proposal
I have done some initial digging through the code to see what it might take to support this, and noted that it's likely not a trivial modification. The current templating code, as we can see in the error message above, outputs strings without any surrounding quotes, and modifying that would be a breaking change for that component's public API.
I'd love to support getting this into place, but wanted to make sure any changes are in line with existing project guidelines and direction. Some guidance on how this might fit into the project as it is today would be very welcome.
Tasks to complete
Let me know if this is something that will fit into the current roadmap! Thanks!
The text was updated successfully, but these errors were encountered: