https://linen.dev logo
#general
Title
# general
v

Victor Pacheco

09/12/2023, 9:44 AM
Hi everyone. I'm trying to match a header with a body request attribute. I've tried it:
Copy code
<http://WireMock.post|WireMock.post>(WireMock.urlPathTemplate(PATH))
    .atPriority(1)
    .withPathParam("instrumentReferenceId", matchingJsonPath("$.requestId"))
    .willReturn(WireMock.badRequest()));
But, I get this response (see image): There is anyway to match a path param with body request attribute? Can I use matchingJsonPath and withPathParam together?