Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: EachKey and EachValue Matcher #510

Open
vineet2907 opened this issue Jul 5, 2024 · 1 comment
Open

RFC: EachKey and EachValue Matcher #510

vineet2907 opened this issue Jul 5, 2024 · 1 comment
Labels
feature request Indicates new feature requests

Comments

@vineet2907
Copy link

vineet2907 commented Jul 5, 2024

Pact v4 specification introduces several new matchers, EachKey and EachValue being two amongst them.
EachKey allows defining rules against the keys in the collection, ignoring the values.
EachValue allows defining rules against the values in the collection, ignoring the keys.

There are corresponding matchers added in pact-js (eachKeyMatches and eachValueMatches).

Is there any plan to introduce these new matchers in current/beta versions of pact-net ?

Until they are available, is there a way to create custom matchers in the latest version to support these matching rules?

@vineet2907 vineet2907 added the triage This issue is yet to be triaged by a maintainer label Jul 5, 2024
@adamrodger adamrodger added feature request Indicates new feature requests and removed triage This issue is yet to be triaged by a maintainer labels Jul 6, 2024
@adamrodger
Copy link
Contributor

There are a few matchers that have been added to the v4 spec after it was first published and currently some of those haven't been implemented. They're not difficult to add though.

There's no way to add custom matchers, no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants