{"action":"created","issue":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/1088","repository_url":"https://api.github.com/repos/kbknapp/clap-rs","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/1088/comments","events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/1088/events","html_url":"https://github.com/kbknapp/clap-rs/pull/1088","id":269172605,"number":1088,"title":"imp: make Arg::validator more flexible","user":{"login":"durka","id":47007,"avatar_url":"https://avatars3.githubusercontent.com/u/47007?v=4","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-27T16:59:18Z","updated_at":"2017-10-27T16:59:19Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/1088","html_url":"https://github.com/kbknapp/clap-rs/pull/1088","diff_url":"https://github.com/kbknapp/clap-rs/pull/1088.diff","patch_url":"https://github.com/kbknapp/clap-rs/pull/1088.patch"},"body":"Makes the validator functions more flexible by changing the return type from `Result<(), String>` to `Result<O, E>` where `O` is anything and `E` is anything convertible to a `String`.\r\n\r\nThis allows, for example, using the same function for validating and parsing your argument.\r\n\r\nBreaking change (albeit tiny) due to function signature change."},"comment":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments/340027249","html_url":"https://github.com/kbknapp/clap-rs/pull/1088#issuecomment-340027249","issue_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/1088","id":340027249,"user":{"login":"mention-bot","id":15710697,"avatar_url":"https://avatars1.githubusercontent.com/u/15710697?v=4","gravatar_id":"","url":"https://api.github.com/users/mention-bot","html_url":"https://github.com/mention-bot","followers_url":"https://api.github.com/users/mention-bot/followers","following_url":"https://api.github.com/users/mention-bot/following{/other_user}","gists_url":"https://api.github.com/users/mention-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mention-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mention-bot/subscriptions","organizations_url":"https://api.github.com/users/mention-bot/orgs","repos_url":"https://api.github.com/users/mention-bot/repos","events_url":"https://api.github.com/users/mention-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mention-bot/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T16:59:19Z","updated_at":"2017-10-27T16:59:19Z","author_association":"NONE","body":"@durka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kbknapp to be a potential reviewer."}}
{"actor":{"display_login":"mention-bot"}}