https://linen.dev logo
Title
p

PRABAKARAN .D

01/27/2023, 4:24 PM
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
{
  "BookingId": "123"
}
) . Could you help to fix this ?
r

Rob Elliot

01/27/2023, 4:26 PM
Are you quoting it in the template?
p

PRABAKARAN .D

01/27/2023, 4:29 PM
Here is the mappings, I configured
Here is the response, I received
r

Rob Elliot

01/27/2023, 4:30 PM
You are putting quotes around the int.
p

PRABAKARAN .D

01/27/2023, 4:31 PM
I am unable to configure the mappings without quotes
image.png
r

Rob Elliot

01/27/2023, 7:52 PM
You probably have to use body not jsonBody, but I’ll need to check…
p

PRABAKARAN .D

01/27/2023, 8:12 PM
Yes, I tried with body attribute. Its working fine with that.
Below is the response as expected
Thank you So Much Rob.