Open VVasyaev opened 1 year ago
Regex by default outputs all matches as string, if you want an integer you can add a custom injection script that would execute regex against path and parse output of it using parseInt('123')
You can read more about injection here
Expected behaviour
Actual behaviour
Steps to reproduce
POST /imposters
Call mocked URL: GET http://localhost:21130/files/1/info
Software versions used
Log contents in mb.log when running mb --loglevel debug
Not sure if log needed for this case.
I need to have an integer value in the response body but can't use ${prod_id} without quotes because it brokes json structure.