-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Description of the bug
I am trying to get data from request to the response via templating.While trying it is observed for numbers greater than 9007199254740991 in the request , the response gets changed .
Example :
If I am passing this as the request body :
"Input": {
"inputNo1": "100",
"inputNo2": "0009007199254740999",
"inputNo3": "001"
}
Output Response:
"Output": {
"outputNo1": "100",
"outputNo2": "0009007199254741000",
"outputNo3": "1"
}
Template used : "{{ Request.Body 'jsonpath' '$.Input.inputNo2' }}"
Steps to reproduce the issue
Use the above template to extract the data from request .
Here the data is send as string and the template is also placed within "".
Observed result
Hoverfly error messages seen (If none, say none)
(paste here)
If possible, add screenshots to help explain your problem
Expected result
Additional relevant information
- Hoverfly version:
| hoverctl | master-4270 |
| hoverfly | v1.9.5 - Anything that might help us to diagnose the problem: Could it be due to floating-point precision limitations? What is the solution to it .
Metadata
Metadata
Assignees
Labels
No labels