-
Can someone tell how to use MatchesJsonPath to ensure specific json attributes are send?
|
Beta Was this translation helpful? Give feedback.
Answered by
satvik-s
Apr 3, 2023
Replies: 1 comment
-
Hi @Jadeclon! I would suggest referencing this: https://wiremock.org/docs/request-matching/ To summarize, if you use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
satvik-s
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Jadeclon!
I would suggest referencing this: https://wiremock.org/docs/request-matching/
To summarize, if you use
$.country
as the input tomatchesJsonPath
then the request will be a match iff the input body has a key calledcountry