Closed vuklip closed 10 months ago
Invalid getting value by template. Let me explain.
I have this simulation:
{ "data": { "pairs": [ { "request": { ... }, "response": { "status": 200, "body": "{ "id": "{{ Request.Body 'jsonpath' '$.params.otp.id' }}" }", "encodedBody": false, "headers": { "Content-Type": [ "application/json" ] }, "templated": true } } ], ... }
and I send the request like
{"params":{"otp":{"id":998974625887}}}
{"id": "9.98974625887e+11"}
If possible, add screenshots to help explain your problem
{"id": "998974625887"}
@vuklip I did notice this bug recently as well, I will merge my fix soon.
Nice, thx! Waiting for version 1.6.2 :)
fixed in https://github.com/SpectoLabs/hoverfly/releases/tag/v1.6.2
Description of the bug
Invalid getting value by template. Let me explain.
Steps to reproduce the issue
I have this simulation:
and I send the request like
Observed result
If possible, add screenshots to help explain your problem
Expected result
Additional relevant information