{"action":"opened","number":597,"pull_request":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597","id":67847404,"html_url":"https://github.com/aldeed/meteor-simple-schema/pull/597","diff_url":"https://github.com/aldeed/meteor-simple-schema/pull/597.diff","patch_url":"https://github.com/aldeed/meteor-simple-schema/pull/597.patch","issue_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/597","number":597,"state":"open","locked":false,"title":".clean method bug with nested object fields containing the numbers at beginning of key","user":{"login":"nAPoBo3uK","id":7078404,"avatar_url":"https://avatars.githubusercontent.com/u/7078404?v=3","gravatar_id":"","url":"https://api.github.com/users/nAPoBo3uK","html_url":"https://github.com/nAPoBo3uK","followers_url":"https://api.github.com/users/nAPoBo3uK/followers","following_url":"https://api.github.com/users/nAPoBo3uK/following{/other_user}","gists_url":"https://api.github.com/users/nAPoBo3uK/gists{/gist_id}","starred_url":"https://api.github.com/users/nAPoBo3uK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nAPoBo3uK/subscriptions","organizations_url":"https://api.github.com/users/nAPoBo3uK/orgs","repos_url":"https://api.github.com/users/nAPoBo3uK/repos","events_url":"https://api.github.com/users/nAPoBo3uK/events{/privacy}","received_events_url":"https://api.github.com/users/nAPoBo3uK/received_events","type":"User","site_admin":false},"body":"```javascript\r\nnew SimpleSchema({\r\n  obj: { type:Object },\r\n  \"obj.1abc\": { type: String, defaultValue: \"testValue\" }\r\n}).clean({})\r\n```\r\nInterprets the `obj` field as array with field `1abc` instead of object. Namely, we gets:\r\n```javascript\r\n{ obj: [] }\r\n```\r\ninstead of:\r\n```javascript\r\n{\r\n  obj: { 1abc: \"testValue\"  }\r\n}\r\n```\r\nBecause `parseInt(\"1abc\", 10)` returns the number `1` not `NaN`.","created_at":"2016-04-26T08:45:24Z","updated_at":"2016-04-26T08:45:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597/commits","review_comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597/comments","review_comment_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/597/comments","statuses_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/statuses/bf3671e5f3c6f6a7078c8bf902764a849b20f75c","head":{"label":"nAPoBo3uK:master","ref":"master","sha":"bf3671e5f3c6f6a7078c8bf902764a849b20f75c","user":{"login":"nAPoBo3uK","id":7078404,"avatar_url":"https://avatars.githubusercontent.com/u/7078404?v=3","gravatar_id":"","url":"https://api.github.com/users/nAPoBo3uK","html_url":"https://github.com/nAPoBo3uK","followers_url":"https://api.github.com/users/nAPoBo3uK/followers","following_url":"https://api.github.com/users/nAPoBo3uK/following{/other_user}","gists_url":"https://api.github.com/users/nAPoBo3uK/gists{/gist_id}","starred_url":"https://api.github.com/users/nAPoBo3uK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nAPoBo3uK/subscriptions","organizations_url":"https://api.github.com/users/nAPoBo3uK/orgs","repos_url":"https://api.github.com/users/nAPoBo3uK/repos","events_url":"https://api.github.com/users/nAPoBo3uK/events{/privacy}","received_events_url":"https://api.github.com/users/nAPoBo3uK/received_events","type":"User","site_admin":false},"repo":{"id":57108762,"name":"meteor-simple-schema","full_name":"nAPoBo3uK/meteor-simple-schema","owner":{"login":"nAPoBo3uK","id":7078404,"avatar_url":"https://avatars.githubusercontent.com/u/7078404?v=3","gravatar_id":"","url":"https://api.github.com/users/nAPoBo3uK","html_url":"https://github.com/nAPoBo3uK","followers_url":"https://api.github.com/users/nAPoBo3uK/followers","following_url":"https://api.github.com/users/nAPoBo3uK/following{/other_user}","gists_url":"https://api.github.com/users/nAPoBo3uK/gists{/gist_id}","starred_url":"https://api.github.com/users/nAPoBo3uK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nAPoBo3uK/subscriptions","organizations_url":"https://api.github.com/users/nAPoBo3uK/orgs","repos_url":"https://api.github.com/users/nAPoBo3uK/repos","events_url":"https://api.github.com/users/nAPoBo3uK/events{/privacy}","received_events_url":"https://api.github.com/users/nAPoBo3uK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nAPoBo3uK/meteor-simple-schema","description":"A simple, reactive schema validation smart package for Meteor.","fork":true,"url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema","forks_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/forks","keys_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/teams","hooks_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/hooks","issue_events_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/issues/events{/number}","events_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/events","assignees_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/assignees{/user}","branches_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/branches{/branch}","tags_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/tags","blobs_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/languages","stargazers_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/stargazers","contributors_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/contributors","subscribers_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/subscribers","subscription_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/subscription","commits_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/contents/{+path}","compare_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/merges","archive_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/downloads","issues_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/issues{/number}","pulls_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/labels{/name}","releases_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/releases{/id}","deployments_url":"https://api.github.com/repos/nAPoBo3uK/meteor-simple-schema/deployments","created_at":"2016-04-26T07:50:40Z","updated_at":"2016-04-26T07:50:41Z","pushed_at":"2016-04-26T08:35:06Z","git_url":"git://github.com/nAPoBo3uK/meteor-simple-schema.git","ssh_url":"git@github.com:nAPoBo3uK/meteor-simple-schema.git","clone_url":"https://github.com/nAPoBo3uK/meteor-simple-schema.git","svn_url":"https://github.com/nAPoBo3uK/meteor-simple-schema","homepage":"https://atmospherejs.com/aldeed/simple-schema","size":1138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aldeed:master","ref":"master","sha":"4ead24bcc92e9963dd994c07d275eac144733c3e","user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"repo":{"id":11591669,"name":"meteor-simple-schema","full_name":"aldeed/meteor-simple-schema","owner":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aldeed/meteor-simple-schema","description":"A simple, reactive schema validation smart package for Meteor.","fork":false,"url":"https://api.github.com/repos/aldeed/meteor-simple-schema","forks_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/forks","keys_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/teams","hooks_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/hooks","issue_events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/events{/number}","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/events","assignees_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/assignees{/user}","branches_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/branches{/branch}","tags_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/tags","blobs_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/languages","stargazers_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/stargazers","contributors_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/contributors","subscribers_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/subscribers","subscription_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/subscription","commits_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/contents/{+path}","compare_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/merges","archive_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/downloads","issues_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues{/number}","pulls_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/labels{/name}","releases_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/releases{/id}","deployments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/deployments","created_at":"2013-07-22T20:27:27Z","updated_at":"2016-04-26T02:53:20Z","pushed_at":"2016-04-13T19:45:23Z","git_url":"git://github.com/aldeed/meteor-simple-schema.git","ssh_url":"git@github.com:aldeed/meteor-simple-schema.git","clone_url":"https://github.com/aldeed/meteor-simple-schema.git","svn_url":"https://github.com/aldeed/meteor-simple-schema","homepage":"https://atmospherejs.com/aldeed/simple-schema","size":1292,"stargazers_count":662,"watchers_count":662,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":145,"forks":120,"open_issues":145,"watchers":662,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597"},"html":{"href":"https://github.com/aldeed/meteor-simple-schema/pull/597"},"issue":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/597"},"comments":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/597/comments"},"review_comments":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597/comments"},"review_comment":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/pulls/597/commits"},"statuses":{"href":"https://api.github.com/repos/aldeed/meteor-simple-schema/statuses/bf3671e5f3c6f6a7078c8bf902764a849b20f75c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":2,"changed_files":1}}