{"action":"opened","issue":{"url":"https://api.github.com/repos/pact-foundation/pact-python/issues/36","repository_url":"https://api.github.com/repos/pact-foundation/pact-python","labels_url":"https://api.github.com/repos/pact-foundation/pact-python/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/pact-foundation/pact-python/issues/36/comments","events_url":"https://api.github.com/repos/pact-foundation/pact-python/issues/36/events","html_url":"https://github.com/pact-foundation/pact-python/issues/36","id":242439421,"number":36,"title":" Fix the json generation of SomethingLike","user":{"login":"jeanbaptistepriez","id":17195729,"avatar_url":"https://avatars2.githubusercontent.com/u/17195729?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanbaptistepriez","html_url":"https://github.com/jeanbaptistepriez","followers_url":"https://api.github.com/users/jeanbaptistepriez/followers","following_url":"https://api.github.com/users/jeanbaptistepriez/following{/other_user}","gists_url":"https://api.github.com/users/jeanbaptistepriez/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanbaptistepriez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanbaptistepriez/subscriptions","organizations_url":"https://api.github.com/users/jeanbaptistepriez/orgs","repos_url":"https://api.github.com/users/jeanbaptistepriez/repos","events_url":"https://api.github.com/users/jeanbaptistepriez/events{/privacy}","received_events_url":"https://api.github.com/users/jeanbaptistepriez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-12T16:24:03Z","updated_at":"2017-07-12T16:24:03Z","closed_at":null,"body":"Hello, \r\n\r\nThere is a small issue when we try to generate those kind of interactions:\r\n```\r\nSomethingLike({\r\n   'username': Term('.+', 'admin'),\r\n   'email': ''\r\n})\r\n```\r\n\r\nThe problem is in file `pact/matchers.py` on line 120:\r\n```\r\nreturn {\r\n  'json_class': 'Pact::SomethingLike',\r\n  'contents': self.matcher}\r\n```\r\nhttps://github.com/pact-foundation/pact-python/blob/master/pact/matchers.py#L120\r\n\r\nIt should be \r\n```\r\nreturn {\r\n  'json_class': 'Pact::SomethingLike',\r\n  'contents': from_term(self.matcher)}\r\n```\r\nThis fix should manage when `self.matcher` is a python dictionary."}}
{"actor":{"display_login":"jeanbaptistepriez"}}