Danny Paniagua
04/14/2023, 3:23 PM"response": {
"status": "{{#eq (jsonPath request.body '$.token') 'happy-path-token'}}200{{else}}500{{/eq}}",
"headers": {
"Content-Type": "application/json"
},
}
and wiremock is throwing an error
Cannot deserialize value of type `int` from String "{{#eq (jsonPath request.body '$.paymentToken') 'happy-path-payment-token'}}200{{else}}500{{/eq}}": not a valid `int` value
I know I can just make separate mapping stubs for a 200 and 500 response, but just sort of playing around with the tech atm 🙂Aaron
04/14/2023, 3:25 PMDanny Paniagua
04/14/2023, 3:25 PMAaron
04/14/2023, 3:26 PM