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?
本文标签:
版权声明:本文标题:visual studio code - How to return a number instead of a string in Wiremock JSON response template - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743958739a2568618.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论