admin管理员组

文章数量:1356017

Below is shown the JSON response file for a wiremock request. The issue is that the value for num in the request is a number, but this response file is returning num as a string.

{
  "num": "{{jsonPath request.body '$.num'}}",
  "string": "lorem"
}

I have tried removing the double quotes i.e. "num": {{jsonPath request.body '$.num'}}, and this works (a number is now returned), but now I get error "Property expected json(513)" in VS Code IDE which I do not want. What can be done to fix this error?

本文标签: