{"action":"closed","issue":{"url":"https://api.github.com/repos/Zooz/express-ajv-swagger-validation/issues/97","repository_url":"https://api.github.com/repos/Zooz/express-ajv-swagger-validation","labels_url":"https://api.github.com/repos/Zooz/express-ajv-swagger-validation/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/Zooz/express-ajv-swagger-validation/issues/97/comments","events_url":"https://api.github.com/repos/Zooz/express-ajv-swagger-validation/issues/97/events","html_url":"https://github.com/Zooz/express-ajv-swagger-validation/issues/97","id":506774486,"node_id":"MDU6SXNzdWU1MDY3NzQ0ODY=","number":97,"title":"Beautify Errors, does not beautify","user":{"login":"SWheeler17","id":47996545,"node_id":"MDQ6VXNlcjQ3OTk2NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/47996545?v=4","gravatar_id":"","url":"https://api.github.com/users/SWheeler17","html_url":"https://github.com/SWheeler17","followers_url":"https://api.github.com/users/SWheeler17/followers","following_url":"https://api.github.com/users/SWheeler17/following{/other_user}","gists_url":"https://api.github.com/users/SWheeler17/gists{/gist_id}","starred_url":"https://api.github.com/users/SWheeler17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SWheeler17/subscriptions","organizations_url":"https://api.github.com/users/SWheeler17/orgs","repos_url":"https://api.github.com/users/SWheeler17/repos","events_url":"https://api.github.com/users/SWheeler17/events{/privacy}","received_events_url":"https://api.github.com/users/SWheeler17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-10-14T17:09:22Z","updated_at":"2019-10-15T16:03:18Z","closed_at":"2019-10-15T16:03:18Z","author_association":"NONE","body":"I am struggling to beautify my errors without editing the code directly. I was able to accomplish my goal by changing line 51 in middleware.js from:\r\n`return Promise.resolve(error);`\r\nto:\r\n`return Promise.resolve(error.errors);`\r\nHowever, I should not have to do this manually to receive the beautified error. Is there any way to receive the error other than modifying the code? "}}
{"actor":{"display_login":"SWheeler17"}}