{"action":"closed","issue":{"url":"https://api.github.com/repos/epoberezkin/ajv/issues/131","repository_url":"https://api.github.com/repos/epoberezkin/ajv","labels_url":"https://api.github.com/repos/epoberezkin/ajv/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/epoberezkin/ajv/issues/131/comments","events_url":"https://api.github.com/repos/epoberezkin/ajv/issues/131/events","html_url":"https://github.com/epoberezkin/ajv/issues/131","id":136507430,"number":131,"title":"optimise `not` keyword in `allErrors: true` mode","user":{"login":"epoberezkin","id":2769109,"avatar_url":"https://avatars.githubusercontent.com/u/2769109?v=3","gravatar_id":"","url":"https://api.github.com/users/epoberezkin","html_url":"https://github.com/epoberezkin","followers_url":"https://api.github.com/users/epoberezkin/followers","following_url":"https://api.github.com/users/epoberezkin/following{/other_user}","gists_url":"https://api.github.com/users/epoberezkin/gists{/gist_id}","starred_url":"https://api.github.com/users/epoberezkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoberezkin/subscriptions","organizations_url":"https://api.github.com/users/epoberezkin/orgs","repos_url":"https://api.github.com/users/epoberezkin/repos","events_url":"https://api.github.com/users/epoberezkin/events{/privacy}","received_events_url":"https://api.github.com/users/epoberezkin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/epoberezkin/ajv/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T20:49:34Z","updated_at":"2016-02-27T23:07:45Z","closed_at":"2016-02-27T23:07:45Z","body":"in `allErrors: true` mode the schema in `not` keyword is collecting all errors if it fails. But `not` will succeed regardless of the number of errors in the schema. So `not` can be improved by returning from schema in it after the first error regardless of `allErrors` setting.\r\n\r\nRelated to #116"}}