{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/joi/issues/589","labels_url":"https://api.github.com/repos/hapijs/joi/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/joi/issues/589/comments","events_url":"https://api.github.com/repos/hapijs/joi/issues/589/events","html_url":"https://github.com/hapijs/joi/issues/589","id":59993946,"number":589,"title":"Joi.array().items(...) error message changes","user":{"login":"DavidTPate","id":2223120,"avatar_url":"https://avatars.githubusercontent.com/u/2223120?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidTPate","html_url":"https://github.com/DavidTPate","followers_url":"https://api.github.com/users/DavidTPate/followers","following_url":"https://api.github.com/users/DavidTPate/following{/other_user}","gists_url":"https://api.github.com/users/DavidTPate/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidTPate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidTPate/subscriptions","organizations_url":"https://api.github.com/users/DavidTPate/orgs","repos_url":"https://api.github.com/users/DavidTPate/repos","events_url":"https://api.github.com/users/DavidTPate/events{/privacy}","received_events_url":"https://api.github.com/users/DavidTPate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-05T18:29:09Z","updated_at":"2015-03-05T20:37:36Z","closed_at":null,"body":"Going through the new 6.0 release it looks like the error messages for Array items have actually gotten worse now. So instead of receiving an error such as: `value at position 0 fails because value length must be less than or equal to 5 characters long` assuming that we have a schema such as:\r\n\r\n```js\r\nvar schema = Joi.array().includes(Joi.string().min(5).required());\r\n```\r\n\r\nNow when we have a schema such as:\r\n\r\n```js\r\nvar schema = Joi.array().items(Joi.string().min(5).required());\r\n```\r\n\r\nThe same array being validated which doesn't have the minimum 5 characters just results in an error stating `\"value\" does not contain 1 required value(s)`. Is there are particular constraint to the change to `items()` which resulted in these error messages being less useful or do the error messages just need to be enhanced?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/hapijs/joi/issues/comments/77446592","html_url":"https://github.com/hapijs/joi/issues/589#issuecomment-77446592","issue_url":"https://api.github.com/repos/hapijs/joi/issues/589","id":77446592,"user":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T20:37:36Z","updated_at":"2015-03-05T20:37:36Z","body":"Required has a meaning now, remove it from that string and you'll get back your old message."}}