{"action":"closed","issue":{"url":"https://api.github.com/repos/bochaco/pact-mock-reactive/issues/7","labels_url":"https://api.github.com/repos/bochaco/pact-mock-reactive/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/bochaco/pact-mock-reactive/issues/7/comments","events_url":"https://api.github.com/repos/bochaco/pact-mock-reactive/issues/7/events","html_url":"https://github.com/bochaco/pact-mock-reactive/issues/7","id":108723040,"number":7,"title":"Support * in matchers","user":{"login":"sbruno","id":39304,"avatar_url":"https://avatars.githubusercontent.com/u/39304?v=3","gravatar_id":"","url":"https://api.github.com/users/sbruno","html_url":"https://github.com/sbruno","followers_url":"https://api.github.com/users/sbruno/followers","following_url":"https://api.github.com/users/sbruno/following{/other_user}","gists_url":"https://api.github.com/users/sbruno/gists{/gist_id}","starred_url":"https://api.github.com/users/sbruno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbruno/subscriptions","organizations_url":"https://api.github.com/users/sbruno/orgs","repos_url":"https://api.github.com/users/sbruno/repos","events_url":"https://api.github.com/users/sbruno/events{/privacy}","received_events_url":"https://api.github.com/users/sbruno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-28T18:51:04Z","updated_at":"2015-11-06T21:18:51Z","closed_at":"2015-11-06T21:18:51Z","body":"If we have to verify that all elements in an array have certain type, we need to do this for each index, for example\r\n{ \"$.body.channelPackages[0].id\": { \"match\": \"type\" } }\r\n{ \"$.body.channelPackages[1].id\": { \"match\": \"type\" } }\r\n{ \"$.body.channelPackages[2].id\": { \"match\": \"type\" } }\r\n\r\n\r\nIt would be good to support saying\r\n{ \"$.body.channelPackages[*].id\": { \"match\": \"type\" } }\r\n\r\nIf we write this matcher in the pact, the jvm pact verify task will understand it, but currently, the mock will not accept it, since it will say that attribute \"*\" does not exist.\r\n\r\nWe may do some minimal validation to support at least simple cases, since the * may be used to support more complex json queries\r\n"}}