{"action":"created","issue":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/459","repository_url":"https://api.github.com/repos/tomakehurst/wiremock","labels_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/459/comments","events_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/459/events","html_url":"https://github.com/tomakehurst/wiremock/issues/459","id":165091891,"node_id":"MDU6SXNzdWUxNjUwOTE4OTE=","number":459,"title":"Combine default matchers with customMatcher","user":{"login":"AlixBa","id":2699647,"node_id":"MDQ6VXNlcjI2OTk2NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2699647?v=4","gravatar_id":"","url":"https://api.github.com/users/AlixBa","html_url":"https://github.com/AlixBa","followers_url":"https://api.github.com/users/AlixBa/followers","following_url":"https://api.github.com/users/AlixBa/following{/other_user}","gists_url":"https://api.github.com/users/AlixBa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlixBa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlixBa/subscriptions","organizations_url":"https://api.github.com/users/AlixBa/orgs","repos_url":"https://api.github.com/users/AlixBa/repos","events_url":"https://api.github.com/users/AlixBa/events{/privacy}","received_events_url":"https://api.github.com/users/AlixBa/received_events","type":"User","site_admin":false},"labels":[{"id":372550772,"node_id":"MDU6TGFiZWwzNzI1NTA3NzI=","url":"https://api.github.com/repos/tomakehurst/wiremock/labels/Feature%20request","name":"Feature request","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T14:18:24Z","updated_at":"2018-10-26T14:47:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\n\nI would like to combine the default matchers (url, method, query params, etc) with a customMatcher of my own. From the tests I did, if I specify a customMatcher it overrides existing matchers and only use the custom one. (<- this point is not very clear in the doc)\n\nIdeally I would have something like:\n\n``` json\n{\n  \"request\": {\n    \"method\": \"POST\",\n    \"url\": \"/url\",\n    \"customMatcher\": { // or something like customPattern\n      \"name\": \"json-path-matcher\",\n      \"parameters\": {\n        \"jsonPath\": \"$.value\",\n        \"operator\": \"equalsTo\",\n        \"value\": \"nullOrEmpty\"\n      }\n    }\n  },\n  \"response\": {\n    \"status\": 204\n  }\n}\n```\n\nDo I have to extend `RequestPattern` and re-inject all request's fields inside customMatcher or is there a simpler way to do this?\n\nThanks\n"},"comment":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/comments/433433339","html_url":"https://github.com/tomakehurst/wiremock/issues/459#issuecomment-433433339","issue_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/459","id":433433339,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQzMzMzOQ==","user":{"login":"cydergoth","id":6250586,"node_id":"MDQ6VXNlcjYyNTA1ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/6250586?v=4","gravatar_id":"","url":"https://api.github.com/users/cydergoth","html_url":"https://github.com/cydergoth","followers_url":"https://api.github.com/users/cydergoth/followers","following_url":"https://api.github.com/users/cydergoth/following{/other_user}","gists_url":"https://api.github.com/users/cydergoth/gists{/gist_id}","starred_url":"https://api.github.com/users/cydergoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cydergoth/subscriptions","organizations_url":"https://api.github.com/users/cydergoth/orgs","repos_url":"https://api.github.com/users/cydergoth/repos","events_url":"https://api.github.com/users/cydergoth/events{/privacy}","received_events_url":"https://api.github.com/users/cydergoth/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T14:47:19Z","updated_at":"2018-10-26T14:47:19Z","author_association":"NONE","body":"+1"}}
{"actor":{"display_login":"cydergoth"}}