{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/3429","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/3429/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/3429/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/3429/events","html_url":"https://github.com/strongloop/loopback/issues/3429","id":233353857,"number":3429,"title":"Loopback discards information about multiple validation errors","user":{"login":"ernie58","id":598177,"avatar_url":"https://avatars1.githubusercontent.com/u/598177?v=4","gravatar_id":"","url":"https://api.github.com/users/ernie58","html_url":"https://github.com/ernie58","followers_url":"https://api.github.com/users/ernie58/followers","following_url":"https://api.github.com/users/ernie58/following{/other_user}","gists_url":"https://api.github.com/users/ernie58/gists{/gist_id}","starred_url":"https://api.github.com/users/ernie58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernie58/subscriptions","organizations_url":"https://api.github.com/users/ernie58/orgs","repos_url":"https://api.github.com/users/ernie58/repos","events_url":"https://api.github.com/users/ernie58/events{/privacy}","received_events_url":"https://api.github.com/users/ernie58/received_events","type":"User","site_admin":false},"labels":[{"id":484521294,"url":"https://api.github.com/repos/strongloop/loopback/labels/stale","name":"stale","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-03T07:48:51Z","updated_at":"2017-08-23T14:06:16Z","closed_at":null,"body":"\r\n\r\n# Description/Steps to reproduce\r\n\r\nI'm migrating from Loopback 2 tot 3.\r\nI currently have an issue with validation errors and strong-error-handler\r\n\r\nWhen I post a bulk create which results in multiple validation errors, those get returned as an array of ValidationErrors. Those errors get grouped by strong-error handler in a 500 internal server error, which is how it was before, but the details of the errors get discarded, when debug is set to false.\r\n\r\nIn my example I upload an array of tags, but for each tag, a uniqueness validation is executed. When 2 or more tags are already in the database, I have an array of errors, instead of a single validation error\r\n\r\nI need a way to determine why the validation failed on the client side, but the details of the errors are discarded now. Am I doing something wrong here, or should this be considered as a bug?\r\n\r\n# Expected result\r\nPreserve the error information when the error object is an array of multiple validation errors "},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/324343623","html_url":"https://github.com/strongloop/loopback/issues/3429#issuecomment-324343623","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/3429","id":324343623,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars2.githubusercontent.com/u/26350515?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2017-08-23T14:06:16Z","updated_at":"2017-08-23T14:06:16Z","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}