{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/131","labels_url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/131/comments","events_url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/131/events","html_url":"https://github.com/christianalfoni/formsy-react/issues/131","id":78683928,"number":131,"title":"Multiple errors per input","user":{"login":"alexjg","id":224635,"avatar_url":"https://avatars.githubusercontent.com/u/224635?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjg","html_url":"https://github.com/alexjg","followers_url":"https://api.github.com/users/alexjg/followers","following_url":"https://api.github.com/users/alexjg/following{/other_user}","gists_url":"https://api.github.com/users/alexjg/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjg/subscriptions","organizations_url":"https://api.github.com/users/alexjg/orgs","repos_url":"https://api.github.com/users/alexjg/repos","events_url":"https://api.github.com/users/alexjg/events{/privacy}","received_events_url":"https://api.github.com/users/alexjg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T20:27:56Z","updated_at":"2015-05-22T10:04:30Z","closed_at":null,"body":"There can be more than one error for a given input, is there any way to represent this in formsy-react?"},"comment":{"url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/comments/104606934","html_url":"https://github.com/christianalfoni/formsy-react/issues/131#issuecomment-104606934","issue_url":"https://api.github.com/repos/christianalfoni/formsy-react/issues/131","id":104606934,"user":{"login":"alexjg","id":224635,"avatar_url":"https://avatars.githubusercontent.com/u/224635?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjg","html_url":"https://github.com/alexjg","followers_url":"https://api.github.com/users/alexjg/followers","following_url":"https://api.github.com/users/alexjg/following{/other_user}","gists_url":"https://api.github.com/users/alexjg/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjg/subscriptions","organizations_url":"https://api.github.com/users/alexjg/orgs","repos_url":"https://api.github.com/users/alexjg/repos","events_url":"https://api.github.com/users/alexjg/events{/privacy}","received_events_url":"https://api.github.com/users/alexjg/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T10:04:30Z","updated_at":"2015-05-22T10:04:30Z","body":"I probably wasn't very clear there, what I mean is that you can have multiple errors at the same time. For example if an input is both too long and not a valid email address, currently the getErrorMessages method returns a string, which makes it impossible to do something like rendering a list of errors under the input. \r\n\r\nIdeally I would like to be able to do something like this:\r\n\r\n```coffee\r\nrender: ->\r\n    <input type=\"text\" ...>\r\n    <ul>\r\n            {@getErrorMessages().map(error -> <li>{message}</li>)}\r\n    </ul>\r\n```\r\n\r\nMy use case for this is actually when returning errors from server side validation so I would also need a way to set multiple errors on an input, so something like \r\n\r\n```coffee\r\nupdateInputsWithErrors(fieldname: [\"error1\", \"error2\"])\r\n```\r\n\r\nI'm happy to have a shot at implementing this if it's something you think would be worth having."}}