Hello All,
Facing an issue while write the stubs in json, in mapping file when the requests are written in nested block like
"bodyPatterns": [
{
"equalToJson": {"quantity": {"value": "${json-unit.any-number}", "unit": "${json-unit.any-string}"}, "enforce_quantity": "${json-unit.any-boolean}","provisioning_metadata": [{"name": "region","value": "${json-unit.any-string}"}]}
}
]
and in the response when it is used as jsonpath
"quantity": {
"value": {{jsonPath request.body '$.value'}},
"unit": "{{jsonPath request.body '$.unit'}}"
},
on execution, output coming as empty value like the below one
"quantity": {
"value": ,
"unit": ""
},
Can some one help me to explain what is going wrong over here?