Matcher for item presence in array
complete
Dmitry Pavlov
Some api formats heavily use lists to organize, for example Siren hypermedia keeps subentities and links as arrays, not as maps.
Currently this is not supported well in pact, because it does not allow to do assertion "array contains an item (potentially complex object)"
More details and specific example here - https://github.com/pact-foundation/pact-specification/issues/38#issuecomment-632570076
Matt Fellows
complete
This is now supported in V4 Pact via the
ArrayContains
matcher. See https://github.com/pact-foundation/pact-specification/tree/version-4#supported-matching-rulesMatt Fellows
in progress
Matt Fellows
planned
Support is being planned for this. It's now officially added to the v4 RFC. Initially support will be available in JS, Java and C++ (consumer)
raj v
Matt Fellows: Thanks so much Matt & Ron.