matrix-org / complement

Matrix compliance test suite
Apache License 2.0
61 stars 52 forks source link

Refactor the match.CheckOff API to use functional options #711

Closed kegsay closed 8 months ago

kegsay commented 8 months ago

This means you don't need to tack on , nil all the time, and can optionally specify when you want to allow unwanted items, obviating the need for JSONCheckOffAllowUnwanted. This composes better and supports adding additional functionality e.g allowing duplicate items.