Thanks @Rob Elliot! Actually we also use kotest, but I don't see how
shouldEqualSpecifiedJson
/ lenient comparison could help?
r
Rob Elliot
01/09/2024, 4:56 PM
I assumed you were specifying the expected side of the comparison explicitly, so could just leave out the fields you don't care about.
If you are comparing two objects which both have the fields you want to ignore then JsonUnit's Ignoring paths might work?