{"action":"created","issue":{"url":"https://api.github.com/repos/koajs/joi-router/issues/34","repository_url":"https://api.github.com/repos/koajs/joi-router","labels_url":"https://api.github.com/repos/koajs/joi-router/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/koajs/joi-router/issues/34/comments","events_url":"https://api.github.com/repos/koajs/joi-router/issues/34/events","html_url":"https://github.com/koajs/joi-router/issues/34","id":185624549,"number":34,"title":"this.state.route cannot get custom error in validate","user":{"login":"miserylee","id":16648966,"avatar_url":"https://avatars.githubusercontent.com/u/16648966?v=3","gravatar_id":"","url":"https://api.github.com/users/miserylee","html_url":"https://github.com/miserylee","followers_url":"https://api.github.com/users/miserylee/followers","following_url":"https://api.github.com/users/miserylee/following{/other_user}","gists_url":"https://api.github.com/users/miserylee/gists{/gist_id}","starred_url":"https://api.github.com/users/miserylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miserylee/subscriptions","organizations_url":"https://api.github.com/users/miserylee/orgs","repos_url":"https://api.github.com/users/miserylee/repos","events_url":"https://api.github.com/users/miserylee/events{/privacy}","received_events_url":"https://api.github.com/users/miserylee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T10:00:39Z","updated_at":"2016-10-27T11:59:05Z","closed_at":null,"body":"```\r\nfunction makeSpecExposer(spec) {\r\n  var defn = clone.clonePrototype(spec);\r\n  return function* specExposer(next) {\r\n    this.state.route = defn;\r\n    yield* next;\r\n  };\r\n}\r\n```\r\n\r\nWhy use clone to expose specs? It will produce some trouble like 'custom error will transform to undefined'."},"comment":{"url":"https://api.github.com/repos/koajs/joi-router/issues/comments/256621437","html_url":"https://github.com/koajs/joi-router/issues/34#issuecomment-256621437","issue_url":"https://api.github.com/repos/koajs/joi-router/issues/34","id":256621437,"user":{"login":"miserylee","id":16648966,"avatar_url":"https://avatars.githubusercontent.com/u/16648966?v=3","gravatar_id":"","url":"https://api.github.com/users/miserylee","html_url":"https://github.com/miserylee","followers_url":"https://api.github.com/users/miserylee/followers","following_url":"https://api.github.com/users/miserylee/following{/other_user}","gists_url":"https://api.github.com/users/miserylee/gists{/gist_id}","starred_url":"https://api.github.com/users/miserylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miserylee/subscriptions","organizations_url":"https://api.github.com/users/miserylee/orgs","repos_url":"https://api.github.com/users/miserylee/repos","events_url":"https://api.github.com/users/miserylee/events{/privacy}","received_events_url":"https://api.github.com/users/miserylee/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T11:59:05Z","updated_at":"2016-10-27T11:59:05Z","body":"[https://github.com/pvorb/node-clone/issues/67](https://github.com/pvorb/node-clone/issues/67)\r\n"}}
{"actor":{"display_login":"miserylee"}}