Bas Dijkstra
03/08/2024, 9:30 AMquantity
from the request body in a response.
Using "quantity": "{{jsonPath request.body '$.quantity'}}"
it works, but that converts the element in the response to a string, not an integer. If I remove the double quotes, WireMock tells me my JSON is invalid.
How can I easily return request body integer values as an integer in the response?Lee Turner
03/08/2024, 9:54 AMjsonBody
to return your response body? If so you might have to change that to body
Bas Dijkstra
03/08/2024, 10:13 AMLee Turner
03/08/2024, 10:14 AMBas Dijkstra
03/08/2024, 10:17 AM