{"action":"closed","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/360","repository_url":"https://api.github.com/repos/aldeed/meteor-simple-schema","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/360/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/360/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/360","id":76390333,"number":360,"title":"validateOne says array is valid even if one of the values in it is invalid","user":{"login":"gibson","id":140022,"avatar_url":"https://avatars.githubusercontent.com/u/140022?v=3","gravatar_id":"","url":"https://api.github.com/users/gibson","html_url":"https://github.com/gibson","followers_url":"https://api.github.com/users/gibson/followers","following_url":"https://api.github.com/users/gibson/following{/other_user}","gists_url":"https://api.github.com/users/gibson/gists{/gist_id}","starred_url":"https://api.github.com/users/gibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gibson/subscriptions","organizations_url":"https://api.github.com/users/gibson/orgs","repos_url":"https://api.github.com/users/gibson/repos","events_url":"https://api.github.com/users/gibson/events{/privacy}","received_events_url":"https://api.github.com/users/gibson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/labels/confirmed%20bug","name":"confirmed bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-05-14T15:15:23Z","updated_at":"2016-08-24T01:10:50Z","closed_at":"2016-08-24T01:10:50Z","body":"i have a schema for user emails\r\n```\r\n    emails: {\r\n        type: [Object],\r\n        // this must be optional if you also use other login services like facebook,\r\n        // but if you use only accounts-password, then it can be required\r\n        optional: true,\r\n        maxCount: 5\r\n    },\r\n    \"emails.$.address\": {\r\n        type: String,\r\n        regEx: SimpleSchema.RegEx.Email\r\n    },\r\n    \"emails.$.verified\": {\r\n        type: Boolean\r\n    }\r\n```\r\n\r\nAnd i try to validate this field by ```validateOne``` method\r\n```ctx.validateOne({emails: [{address: 12321, verified: 'asdasd'}]}, 'emails’);```\r\nOn any value of address or verified i has answer ```true```"}}
{"actor":{"display_login":"aldeed"}}