{"action":"created","issue":{"url":"https://api.github.com/repos/rest-assured/rest-assured/issues/741","repository_url":"https://api.github.com/repos/rest-assured/rest-assured","labels_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/741/comments","events_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/741/events","html_url":"https://github.com/rest-assured/rest-assured/issues/741","id":174566518,"number":741,"title":"Cannot compare Long values within body","user":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-01T16:19:34Z","updated_at":"2016-09-02T08:26:39Z","closed_at":null,"body":"As already faced in https://groups.google.com/forum/#!topic/rest-assured/mf-VIHM-aJA, a body element cannot be compared to a long value.\r\n\r\nI think the best solution could be to allow function passing (as for headers) in order to convert the value to a long. E.g:\r\n\r\n```java\r\nlong expected = 1L;\r\nwhen().get(\"/test/{id}\", expected).\r\nthen().body(\"id\",Long::valueOf, Matchers.is(expected));\r\n```\r\n\r\nAt the moment I have to compare the id value with an integer version of  **expected** that is definitely unsafe..."},"comment":{"url":"https://api.github.com/repos/rest-assured/rest-assured/issues/comments/244314537","html_url":"https://github.com/rest-assured/rest-assured/issues/741#issuecomment-244314537","issue_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/741","id":244314537,"user":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T08:26:39Z","updated_at":"2016-09-02T08:26:39Z","body":"Fine for me, the important thing is to fix this somehow . However, from my point of view, adding another sign accepting functions wouldn't be a big problem (but it's just my personal opinion)."}}
{"actor":{"display_login":"fpompermaier"}}