{"action":"created","issue":{"url":"https://api.github.com/repos/keleshev/schema/issues/8","repository_url":"https://api.github.com/repos/keleshev/schema","labels_url":"https://api.github.com/repos/keleshev/schema/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/keleshev/schema/issues/8/comments","events_url":"https://api.github.com/repos/keleshev/schema/issues/8/events","html_url":"https://github.com/keleshev/schema/issues/8","id":9086482,"number":8,"title":"Schema validation quits on first error","user":{"login":"victorandree","id":52588,"avatar_url":"https://avatars.githubusercontent.com/u/52588?v=3","gravatar_id":"","url":"https://api.github.com/users/victorandree","html_url":"https://github.com/victorandree","followers_url":"https://api.github.com/users/victorandree/followers","following_url":"https://api.github.com/users/victorandree/following{/other_user}","gists_url":"https://api.github.com/users/victorandree/gists{/gist_id}","starred_url":"https://api.github.com/users/victorandree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorandree/subscriptions","organizations_url":"https://api.github.com/users/victorandree/orgs","repos_url":"https://api.github.com/users/victorandree/repos","events_url":"https://api.github.com/users/victorandree/events{/privacy}","received_events_url":"https://api.github.com/users/victorandree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2012-12-07T12:25:01Z","updated_at":"2017-02-03T09:23:32Z","closed_at":null,"body":"Given a simple schema:\n\n```\nschema = Schema({\n    'name': And(str, lambda s: len(s) <= 50),\n    'email': And(str, lambda s: '@' in s)\n})\n```\n\nIf I submit this with bad data for both fields, only one error will be reported:\n\n```\n>>> schema.validate({'name': 'Too Long Name', 'email': \"invalid email address\"})\nSchemaError: key 'name is required'\n<lambda>('Too Long Name') should evaluate to True\n```\n\nI understand that this might be intentional, but in my opinion it hampers the user experience since they have to resubmit and resubmit. Is there a way to get \"all\" validation errors at once?\n"},"comment":{"url":"https://api.github.com/repos/keleshev/schema/issues/comments/277201481","html_url":"https://github.com/keleshev/schema/issues/8#issuecomment-277201481","issue_url":"https://api.github.com/repos/keleshev/schema/issues/8","id":277201481,"user":{"login":"Firemango","id":4058865,"avatar_url":"https://avatars.githubusercontent.com/u/4058865?v=3","gravatar_id":"","url":"https://api.github.com/users/Firemango","html_url":"https://github.com/Firemango","followers_url":"https://api.github.com/users/Firemango/followers","following_url":"https://api.github.com/users/Firemango/following{/other_user}","gists_url":"https://api.github.com/users/Firemango/gists{/gist_id}","starred_url":"https://api.github.com/users/Firemango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firemango/subscriptions","organizations_url":"https://api.github.com/users/Firemango/orgs","repos_url":"https://api.github.com/users/Firemango/repos","events_url":"https://api.github.com/users/Firemango/events{/privacy}","received_events_url":"https://api.github.com/users/Firemango/received_events","type":"User","site_admin":false},"created_at":"2017-02-03T09:23:32Z","updated_at":"2017-02-03T09:23:32Z","body":"Did anyone ever come up with a fix or workaround that is plausible?"}}
{"actor":{"display_login":"Firemango"}}