{"action":"created","issue":{"url":"https://api.github.com/repos/finagle/finch/issues/151","labels_url":"https://api.github.com/repos/finagle/finch/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/finagle/finch/issues/151/comments","events_url":"https://api.github.com/repos/finagle/finch/issues/151/events","html_url":"https://github.com/finagle/finch/pull/151","id":55824524,"number":151,"title":"Validation DSL","user":{"login":"rpless","id":2407674,"avatar_url":"https://avatars.githubusercontent.com/u/2407674?v=3","gravatar_id":"","url":"https://api.github.com/users/rpless","html_url":"https://github.com/rpless","followers_url":"https://api.github.com/users/rpless/followers","following_url":"https://api.github.com/users/rpless/following{/other_user}","gists_url":"https://api.github.com/users/rpless/gists{/gist_id}","starred_url":"https://api.github.com/users/rpless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpless/subscriptions","organizations_url":"https://api.github.com/users/rpless/orgs","repos_url":"https://api.github.com/users/rpless/repos","events_url":"https://api.github.com/users/rpless/events{/privacy}","received_events_url":"https://api.github.com/users/rpless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-28T22:18:56Z","updated_at":"2015-01-30T03:55:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/finagle/finch/pulls/151","html_url":"https://github.com/finagle/finch/pull/151","diff_url":"https://github.com/finagle/finch/pull/151.diff","patch_url":"https://github.com/finagle/finch/pull/151.patch"},"body":"This PR has a basic validation dsl for request readers as in #26. It takes the form of a `when` method on `RequestReader`s.\r\nBasic usage looks like:\r\n```scala\r\n  val user: RequestReader[User] = for {\r\n    name <- RequiredParam(\"name\").when(\"should be greater then 5 symbols\") { name.length > 5 }\r\n  } yield User(userId, name, Seq.empty[Ticket])\r\n```\r\nWould love to get some feedback on this."},"comment":{"url":"https://api.github.com/repos/finagle/finch/issues/comments/72150531","html_url":"https://github.com/finagle/finch/pull/151#issuecomment-72150531","issue_url":"https://api.github.com/repos/finagle/finch/issues/151","id":72150531,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T03:55:29Z","updated_at":"2015-01-30T03:55:29Z","body":"\n[![Coverage Status](https://coveralls.io/builds/1832210/badge)](https://coveralls.io/builds/1832210)\n\nCoverage decreased (-0.22%) to 91.78% when pulling **b089ba5706fb294eb215f8d95cdb770684700cf1 on rpless:validation-dsl** into **d8f37528f5c8fb15a04231e23178f3ae96b8b576 on finagle:master**.\n"}}