Hi Everyone, I am using Wiremock standalone server and I am trying to return the response json with integer type using random value helper. But, Its returning the response with the integer value as String(like
) . Could you help to fix this ?
01/27/2023, 4:26 PM
Are you quoting it in the template?
01/27/2023, 4:29 PM
Here is the mappings, I configured
Here is the response, I received
01/27/2023, 4:30 PM
You are putting quotes around the int.
01/27/2023, 4:31 PM
I am unable to configure the mappings without quotes
01/27/2023, 7:52 PM
You probably have to use body not jsonBody, but I’ll need to check…
01/27/2023, 8:12 PM
Yes, I tried with body attribute. Its working fine with that.