{"action":"created","issue":{"url":"https://api.github.com/repos/pebble/pebble-api-node/issues/8","labels_url":"https://api.github.com/repos/pebble/pebble-api-node/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pebble/pebble-api-node/issues/8/comments","events_url":"https://api.github.com/repos/pebble/pebble-api-node/issues/8/events","html_url":"https://github.com/pebble/pebble-api-node/pull/8","id":67361233,"number":8,"title":"Validate options using Joi","user":{"login":"expr","id":773673,"avatar_url":"https://avatars.githubusercontent.com/u/773673?v=3","gravatar_id":"","url":"https://api.github.com/users/expr","html_url":"https://github.com/expr","followers_url":"https://api.github.com/users/expr/followers","following_url":"https://api.github.com/users/expr/following{/other_user}","gists_url":"https://api.github.com/users/expr/gists{/gist_id}","starred_url":"https://api.github.com/users/expr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expr/subscriptions","organizations_url":"https://api.github.com/users/expr/orgs","repos_url":"https://api.github.com/users/expr/repos","events_url":"https://api.github.com/users/expr/events{/privacy}","received_events_url":"https://api.github.com/users/expr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Neal","id":1039128,"avatar_url":"https://avatars.githubusercontent.com/u/1039128?v=3","gravatar_id":"","url":"https://api.github.com/users/Neal","html_url":"https://github.com/Neal","followers_url":"https://api.github.com/users/Neal/followers","following_url":"https://api.github.com/users/Neal/following{/other_user}","gists_url":"https://api.github.com/users/Neal/gists{/gist_id}","starred_url":"https://api.github.com/users/Neal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neal/subscriptions","organizations_url":"https://api.github.com/users/Neal/orgs","repos_url":"https://api.github.com/users/Neal/repos","events_url":"https://api.github.com/users/Neal/events{/privacy}","received_events_url":"https://api.github.com/users/Neal/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-09T13:23:18Z","updated_at":"2015-04-29T19:51:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pebble/pebble-api-node/pulls/8","html_url":"https://github.com/pebble/pebble-api-node/pull/8","diff_url":"https://github.com/pebble/pebble-api-node/pull/8.diff","patch_url":"https://github.com/pebble/pebble-api-node/pull/8.patch"},"body":"The validation code was messy, so I've cleaned it up a little using Joi. All tests pass but the object being sent is incorrect (instead of `pin.id`, it's now `pin.opts.id`, etc.) so I'll need to add a `.toJSON()` method to each object."},"comment":{"url":"https://api.github.com/repos/pebble/pebble-api-node/issues/comments/97559672","html_url":"https://github.com/pebble/pebble-api-node/pull/8#issuecomment-97559672","issue_url":"https://api.github.com/repos/pebble/pebble-api-node/issues/8","id":97559672,"user":{"login":"expr","id":773673,"avatar_url":"https://avatars.githubusercontent.com/u/773673?v=3","gravatar_id":"","url":"https://api.github.com/users/expr","html_url":"https://github.com/expr","followers_url":"https://api.github.com/users/expr/followers","following_url":"https://api.github.com/users/expr/following{/other_user}","gists_url":"https://api.github.com/users/expr/gists{/gist_id}","starred_url":"https://api.github.com/users/expr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expr/subscriptions","organizations_url":"https://api.github.com/users/expr/orgs","repos_url":"https://api.github.com/users/expr/repos","events_url":"https://api.github.com/users/expr/events{/privacy}","received_events_url":"https://api.github.com/users/expr/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T19:51:33Z","updated_at":"2015-04-29T19:51:33Z","body":"will do it this weekend."}}