{"action":"opened","number":207,"pull_request":{"url":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207","id":34398211,"html_url":"https://github.com/apigee-127/swagger-tools/pull/207","diff_url":"https://github.com/apigee-127/swagger-tools/pull/207.diff","patch_url":"https://github.com/apigee-127/swagger-tools/pull/207.patch","issue_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/207","number":207,"state":"open","locked":false,"title":"More precise number/integer validation","user":{"login":"ricardohbin","id":368636,"avatar_url":"https://avatars.githubusercontent.com/u/368636?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardohbin","html_url":"https://github.com/ricardohbin","followers_url":"https://api.github.com/users/ricardohbin/followers","following_url":"https://api.github.com/users/ricardohbin/following{/other_user}","gists_url":"https://api.github.com/users/ricardohbin/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardohbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardohbin/subscriptions","organizations_url":"https://api.github.com/users/ricardohbin/orgs","repos_url":"https://api.github.com/users/ricardohbin/repos","events_url":"https://api.github.com/users/ricardohbin/events{/privacy}","received_events_url":"https://api.github.com/users/ricardohbin/received_events","type":"User","site_admin":false},"body":"Hi, I detect the follow problem with the validator rules of both *integer* and *number*.\r\n\r\nIf a value starts with number, it returns true, even if there's letters in it.\r\n\r\nExample:\r\n```js\r\n!_.isNaN(parseInt(value, 10)); //true\r\n!_.isNaN(parseInt(\"0arg\", 10)); //true\r\n!_.isNaN(parseInt(\"arg0\", 10)); //false (like in the unit tests)\r\n```\r\n\r\nThis little PR fixes this unexpected behavior.\r\n\r\n","created_at":"2015-04-29T19:39:59Z","updated_at":"2015-04-29T19:39:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207/commits","review_comments_url":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207/comments","review_comment_url":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/207/comments","statuses_url":"https://api.github.com/repos/apigee-127/swagger-tools/statuses/447f8c97dc335306383e946f770a08dc750be653","head":{"label":"ricardohbin:master","ref":"master","sha":"447f8c97dc335306383e946f770a08dc750be653","user":{"login":"ricardohbin","id":368636,"avatar_url":"https://avatars.githubusercontent.com/u/368636?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardohbin","html_url":"https://github.com/ricardohbin","followers_url":"https://api.github.com/users/ricardohbin/followers","following_url":"https://api.github.com/users/ricardohbin/following{/other_user}","gists_url":"https://api.github.com/users/ricardohbin/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardohbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardohbin/subscriptions","organizations_url":"https://api.github.com/users/ricardohbin/orgs","repos_url":"https://api.github.com/users/ricardohbin/repos","events_url":"https://api.github.com/users/ricardohbin/events{/privacy}","received_events_url":"https://api.github.com/users/ricardohbin/received_events","type":"User","site_admin":false},"repo":{"id":34813315,"name":"swagger-tools","full_name":"ricardohbin/swagger-tools","owner":{"login":"ricardohbin","id":368636,"avatar_url":"https://avatars.githubusercontent.com/u/368636?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardohbin","html_url":"https://github.com/ricardohbin","followers_url":"https://api.github.com/users/ricardohbin/followers","following_url":"https://api.github.com/users/ricardohbin/following{/other_user}","gists_url":"https://api.github.com/users/ricardohbin/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardohbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardohbin/subscriptions","organizations_url":"https://api.github.com/users/ricardohbin/orgs","repos_url":"https://api.github.com/users/ricardohbin/repos","events_url":"https://api.github.com/users/ricardohbin/events{/privacy}","received_events_url":"https://api.github.com/users/ricardohbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ricardohbin/swagger-tools","description":"A Node.js and browser module that provides tooling around Swagger.","fork":true,"url":"https://api.github.com/repos/ricardohbin/swagger-tools","forks_url":"https://api.github.com/repos/ricardohbin/swagger-tools/forks","keys_url":"https://api.github.com/repos/ricardohbin/swagger-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ricardohbin/swagger-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ricardohbin/swagger-tools/teams","hooks_url":"https://api.github.com/repos/ricardohbin/swagger-tools/hooks","issue_events_url":"https://api.github.com/repos/ricardohbin/swagger-tools/issues/events{/number}","events_url":"https://api.github.com/repos/ricardohbin/swagger-tools/events","assignees_url":"https://api.github.com/repos/ricardohbin/swagger-tools/assignees{/user}","branches_url":"https://api.github.com/repos/ricardohbin/swagger-tools/branches{/branch}","tags_url":"https://api.github.com/repos/ricardohbin/swagger-tools/tags","blobs_url":"https://api.github.com/repos/ricardohbin/swagger-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ricardohbin/swagger-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ricardohbin/swagger-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/ricardohbin/swagger-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ricardohbin/swagger-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/ricardohbin/swagger-tools/languages","stargazers_url":"https://api.github.com/repos/ricardohbin/swagger-tools/stargazers","contributors_url":"https://api.github.com/repos/ricardohbin/swagger-tools/contributors","subscribers_url":"https://api.github.com/repos/ricardohbin/swagger-tools/subscribers","subscription_url":"https://api.github.com/repos/ricardohbin/swagger-tools/subscription","commits_url":"https://api.github.com/repos/ricardohbin/swagger-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/ricardohbin/swagger-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/ricardohbin/swagger-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/ricardohbin/swagger-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/ricardohbin/swagger-tools/contents/{+path}","compare_url":"https://api.github.com/repos/ricardohbin/swagger-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ricardohbin/swagger-tools/merges","archive_url":"https://api.github.com/repos/ricardohbin/swagger-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ricardohbin/swagger-tools/downloads","issues_url":"https://api.github.com/repos/ricardohbin/swagger-tools/issues{/number}","pulls_url":"https://api.github.com/repos/ricardohbin/swagger-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/ricardohbin/swagger-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/ricardohbin/swagger-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ricardohbin/swagger-tools/labels{/name}","releases_url":"https://api.github.com/repos/ricardohbin/swagger-tools/releases{/id}","created_at":"2015-04-29T19:15:33Z","updated_at":"2015-04-29T19:27:29Z","pushed_at":"2015-04-29T19:27:29Z","git_url":"git://github.com/ricardohbin/swagger-tools.git","ssh_url":"git@github.com:ricardohbin/swagger-tools.git","clone_url":"https://github.com/ricardohbin/swagger-tools.git","svn_url":"https://github.com/ricardohbin/swagger-tools","homepage":"","size":11024,"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":"apigee-127:master","ref":"master","sha":"b1c632adf74907648fe3adb08daf5c46ce299993","user":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"repo":{"id":20905275,"name":"swagger-tools","full_name":"apigee-127/swagger-tools","owner":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apigee-127/swagger-tools","description":"A Node.js and browser module that provides tooling around Swagger.","fork":false,"url":"https://api.github.com/repos/apigee-127/swagger-tools","forks_url":"https://api.github.com/repos/apigee-127/swagger-tools/forks","keys_url":"https://api.github.com/repos/apigee-127/swagger-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apigee-127/swagger-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apigee-127/swagger-tools/teams","hooks_url":"https://api.github.com/repos/apigee-127/swagger-tools/hooks","issue_events_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/events{/number}","events_url":"https://api.github.com/repos/apigee-127/swagger-tools/events","assignees_url":"https://api.github.com/repos/apigee-127/swagger-tools/assignees{/user}","branches_url":"https://api.github.com/repos/apigee-127/swagger-tools/branches{/branch}","tags_url":"https://api.github.com/repos/apigee-127/swagger-tools/tags","blobs_url":"https://api.github.com/repos/apigee-127/swagger-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apigee-127/swagger-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apigee-127/swagger-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/apigee-127/swagger-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apigee-127/swagger-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/apigee-127/swagger-tools/languages","stargazers_url":"https://api.github.com/repos/apigee-127/swagger-tools/stargazers","contributors_url":"https://api.github.com/repos/apigee-127/swagger-tools/contributors","subscribers_url":"https://api.github.com/repos/apigee-127/swagger-tools/subscribers","subscription_url":"https://api.github.com/repos/apigee-127/swagger-tools/subscription","commits_url":"https://api.github.com/repos/apigee-127/swagger-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/apigee-127/swagger-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/apigee-127/swagger-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/apigee-127/swagger-tools/contents/{+path}","compare_url":"https://api.github.com/repos/apigee-127/swagger-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apigee-127/swagger-tools/merges","archive_url":"https://api.github.com/repos/apigee-127/swagger-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apigee-127/swagger-tools/downloads","issues_url":"https://api.github.com/repos/apigee-127/swagger-tools/issues{/number}","pulls_url":"https://api.github.com/repos/apigee-127/swagger-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/apigee-127/swagger-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/apigee-127/swagger-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apigee-127/swagger-tools/labels{/name}","releases_url":"https://api.github.com/repos/apigee-127/swagger-tools/releases{/id}","created_at":"2014-06-17T00:43:39Z","updated_at":"2015-04-29T17:40:03Z","pushed_at":"2015-04-28T20:47:58Z","git_url":"git://github.com/apigee-127/swagger-tools.git","ssh_url":"git@github.com:apigee-127/swagger-tools.git","clone_url":"https://github.com/apigee-127/swagger-tools.git","svn_url":"https://github.com/apigee-127/swagger-tools","homepage":"","size":11024,"stargazers_count":79,"watchers_count":79,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":27,"forks":22,"open_issues":27,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207"},"html":{"href":"https://github.com/apigee-127/swagger-tools/pull/207"},"issue":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/issues/207"},"comments":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/apigee-127/swagger-tools/statuses/447f8c97dc335306383e946f770a08dc750be653"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}