{"action":"created","issue":{"url":"https://api.github.com/repos/bugventure/jsen/issues/3","labels_url":"https://api.github.com/repos/bugventure/jsen/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bugventure/jsen/issues/3/comments","events_url":"https://api.github.com/repos/bugventure/jsen/issues/3/events","html_url":"https://github.com/bugventure/jsen/pull/3","id":61979558,"number":3,"title":"Optionally throw errors","user":{"login":"davidbanham","id":631832,"avatar_url":"https://avatars.githubusercontent.com/u/631832?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbanham","html_url":"https://github.com/davidbanham","followers_url":"https://api.github.com/users/davidbanham/followers","following_url":"https://api.github.com/users/davidbanham/following{/other_user}","gists_url":"https://api.github.com/users/davidbanham/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbanham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbanham/subscriptions","organizations_url":"https://api.github.com/users/davidbanham/orgs","repos_url":"https://api.github.com/users/davidbanham/repos","events_url":"https://api.github.com/users/davidbanham/events{/privacy}","received_events_url":"https://api.github.com/users/davidbanham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-16T05:49:25Z","updated_at":"2015-04-02T16:46:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bugventure/jsen/pulls/3","html_url":"https://github.com/bugventure/jsen/pull/3","diff_url":"https://github.com/bugventure/jsen/pull/3.diff","patch_url":"https://github.com/bugventure/jsen/pull/3.patch"},"body":"These errors aren't quite as helpful as I'd like. Ideally they'd provide both the schema the item was compared against and the input that was provided. This is better than nothing, though."},"comment":{"url":"https://api.github.com/repos/bugventure/jsen/issues/comments/88971336","html_url":"https://github.com/bugventure/jsen/pull/3#issuecomment-88971336","issue_url":"https://api.github.com/repos/bugventure/jsen/issues/3","id":88971336,"user":{"login":"bugventure","id":649380,"avatar_url":"https://avatars.githubusercontent.com/u/649380?v=3","gravatar_id":"","url":"https://api.github.com/users/bugventure","html_url":"https://github.com/bugventure","followers_url":"https://api.github.com/users/bugventure/followers","following_url":"https://api.github.com/users/bugventure/following{/other_user}","gists_url":"https://api.github.com/users/bugventure/gists{/gist_id}","starred_url":"https://api.github.com/users/bugventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugventure/subscriptions","organizations_url":"https://api.github.com/users/bugventure/orgs","repos_url":"https://api.github.com/users/bugventure/repos","events_url":"https://api.github.com/users/bugventure/events{/privacy}","received_events_url":"https://api.github.com/users/bugventure/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T16:46:59Z","updated_at":"2015-04-02T16:46:59Z","body":"@davidbanham \r\n\r\nYes, this is exactly the idea behind structured error objects. We want to:\r\na) Provide detailed error context in a nested error object graph;\r\nb) Give the flexibility of being able to rewrite the human-readable error message.\r\n\r\nI also feel that providing extensive error reporting is reciprocal to performance, but required nonetheless. "}}