You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature request
I'd like to request a feature to ignore certain JSON keys when using the .withBody(JsonBody.json(...)) request expectation matcher.
What you are trying to do
I have JSON bodies where the value of a particular key keeps changing with every single test run, making it impossible for me to use the .withBody() matcher.
Example
In this example, I have two JSON keys that change with each test run that I want to ignore: current-time' and random-id'.
Describe the feature request
I'd like to request a feature to ignore certain JSON keys when using the
.withBody(JsonBody.json(...))
request expectation matcher.What you are trying to do
I have JSON bodies where the value of a particular key keeps changing with every single test run, making it impossible for me to use the
.withBody()
matcher.Example
In this example, I have two JSON keys that change with each test run that I want to ignore:
current-time' and
random-id'.The solution you'd like
Introduce an option to specify one or more JSON keys to be ignored when matching the JSON body.
Describe alternatives you've considered
I'm currently using a temporary workaround using
EasyMock.anyString()
to match any JSON body:The text was updated successfully, but these errors were encountered: