airbnb/okreplay

Support for custom match rules

colintheshots opened this issue · 2 comments

Sometimes the default match rules just aren't enough. There should be support for setting custom match rules. For example, some queries have time information in them, which would need to be stripped before comparing bodies. I'll see if I can get a pull request started perhaps.

I think I figured out a way to accomplish this by setting the defaultMatchRule in the OkReplayConfig, but not per annotation.

Yep, that's supported via OkReplayConfig#defaultMatchRule