Hi Everyone, I am using Wiremock standalone server...
# general
p
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
Copy code
{
  "BookingId": "123"
}
) . Could you help to fix this ?
r
Are you quoting it in the template?
p
Here is the mappings, I configured
Here is the response, I received
r
You are putting quotes around the int.
p
I am unable to configure the mappings without quotes
r
You probably have to use body not jsonBody, but I’ll need to check…
p
Yes, I tried with body attribute. Its working fine with that.
Below is the response as expected
Thank you So Much Rob.