Hi all Is there a way to match if a `queryParam` ...
# general
n
Hi all Is there a way to match if a
queryParam
is not present ?
b
Have you tried
withQueryParam(“param_name”, absent())
? It works for headers, never used it with query parameters.
l
@Bas Dijkstra is spot on,
absent()
should be the way to go. We had this thread recently - https://wiremock-community.slack.com/archives/C03N1E6HFPY/p1731515292113549
1
n
Does it work with JSON defined stubs ?
b
n
Thank you so much
I must be blind
l
If you look at that thread you will see an example
n
I missed that on the docs
b
No problem, happy to help