GitHub PullRequestEvent at 2014-03-14 21:38:53
Repository: validate.js
Actor: rickharrison
Payload: {"action":"reopened","number":103,"pull_request":{"url":"https://api.github.com/repos/rickharrison/validate.js/pulls/103","id":13568078,"html_url":"https://github.com/rickharrison/validate.js/pull/103","diff_url":"https://github.com/rickharrison/validate.js/pull/103.diff","patch_url":"https://github.com/rickharrison/validate.js/pull/103.patch","issue_url":"https://api.github.com/repos/rickharrison/validate.js/issues/103","number":103,"state":"open","title":"Modified `FormValidator.prototype._validateField()` to support allowing custom messages.","user":{"login":"cballou","id":166784,"avatar_url":"https://gravatar.com/avatar/adee906d49f35ed481cc54ed80e03ecb?d=https%3A%2F%2Fidenticons.github.com%2F2165c7bd04348f60efeea2ee024e4487.png&r=x","gravatar_id":"adee906d49f35ed481cc54ed80e03ecb","url":"https://api.github.com/users/cballou","html_url":"https://github.com/cballou","followers_url":"https://api.github.com/users/cballou/followers","following_url":"https://api.github.com/users/cballou/following{/other_user}","gists_url":"https://api.github.com/users/cballou/gists{/gist_id}","starred_url":"https://api.github.com/users/cballou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cballou/subscriptions","organizations_url":"https://api.github.com/users/cballou/orgs","repos_url":"https://api.github.com/users/cballou/repos","events_url":"https://api.github.com/users/cballou/events{/privacy}","received_events_url":"https://api.github.com/users/cballou/received_events","type":"User","site_admin":false},"body":"Modified `FormValidator.prototype._validateField()` to support allowing custom messaging on a per field/rule basis. For instance, you can now use the following syntax to target applying a unique validation error messaging to the field `fieldName` when it fails `required`:\r\n\r\n```js\r\n// initiate validator with single required rule\r\nvar validator = new FormValidator(\r\n    'form-identifier', \r\n    { name: 'fieldName', display: 'your field name', rules: 'required' },\r\n    function(errors, evt) { }\r\n);\r\n\r\n// set custom error message display for fieldName input field and required rule\r\nvalidator.setMessage('fieldName.required', 'This field is required, yo');\r\n```\r\n\r\nWhen using `setMessage()`, the newly supported format is `fieldName`.`validationRule`. This allows you to uniquely target individual field/rule combos for error messaging. Very useful if you want to give more instruction/detail to a user.\r\n\r\nThis scratches my itch for overriding messaging on a low level. Hope others find this helpful!","created_at":"2014-03-14T12:10:52Z","updated_at":"2014-03-14T21:38:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52b4cb7398ae7d1c3f798964801e92e4511f254c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rickharrison/validate.js/pulls/103/commits","review_comments_url":"https://api.github.com/repos/rickharrison/validate.js/pulls/103/comments","review_comment_url":"https://api.github.com/repos/rickharrison/validate.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rickharrison/validate.js/issues/103/comments","statuses_url":"https://api.github.com/repos/rickharrison/validate.js/statuses/c302d901a2cf9f036d08b98eb9bb47e147a6b40f","head":{"label":"cballou:patch-1","ref":"patch-1","sha":"c302d901a2cf9f036d08b98eb9bb47e147a6b40f","user":{"login":"cballou","id":166784,"avatar_url":"https://gravatar.com/avatar/adee906d49f35ed481cc54ed80e03ecb?d=https%3A%2F%2Fidenticons.github.com%2F2165c7bd04348f60efeea2ee024e4487.png&r=x","gravatar_id":"adee906d49f35ed481cc54ed80e03ecb","url":"https://api.github.com/users/cballou","html_url":"https://github.com/cballou","followers_url":"https://api.github.com/users/cballou/followers","following_url":"https://api.github.com/users/cballou/following{/other_user}","gists_url":"https://api.github.com/users/cballou/gists{/gist_id}","starred_url":"https://api.github.com/users/cballou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cballou/subscriptions","organizations_url":"https://api.github.com/users/cballou/orgs","repos_url":"https://api.github.com/users/cballou/repos","events_url":"https://api.github.com/users/cballou/events{/privacy}","received_events_url":"https://api.github.com/users/cballou/received_events","type":"User","site_admin":false},"repo":{"id":17716631,"name":"validate.js","full_name":"cballou/validate.js","owner":{"login":"cballou","id":166784,"avatar_url":"https://gravatar.com/avatar/adee906d49f35ed481cc54ed80e03ecb?d=https%3A%2F%2Fidenticons.github.com%2F2165c7bd04348f60efeea2ee024e4487.png&r=x","gravatar_id":"adee906d49f35ed481cc54ed80e03ecb","url":"https://api.github.com/users/cballou","html_url":"https://github.com/cballou","followers_url":"https://api.github.com/users/cballou/followers","following_url":"https://api.github.com/users/cballou/following{/other_user}","gists_url":"https://api.github.com/users/cballou/gists{/gist_id}","starred_url":"https://api.github.com/users/cballou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cballou/subscriptions","organizations_url":"https://api.github.com/users/cballou/orgs","repos_url":"https://api.github.com/users/cballou/repos","events_url":"https://api.github.com/users/cballou/events{/privacy}","received_events_url":"https://api.github.com/users/cballou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cballou/validate.js","description":"Lightweight JavaScript form validation library inspired by CodeIgniter.","fork":true,"url":"https://api.github.com/repos/cballou/validate.js","forks_url":"https://api.github.com/repos/cballou/validate.js/forks","keys_url":"https://api.github.com/repos/cballou/validate.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cballou/validate.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cballou/validate.js/teams","hooks_url":"https://api.github.com/repos/cballou/validate.js/hooks","issue_events_url":"https://api.github.com/repos/cballou/validate.js/issues/events{/number}","events_url":"https://api.github.com/repos/cballou/validate.js/events","assignees_url":"https://api.github.com/repos/cballou/validate.js/assignees{/user}","branches_url":"https://api.github.com/repos/cballou/validate.js/branches{/branch}","tags_url":"https://api.github.com/repos/cballou/validate.js/tags","blobs_url":"https://api.github.com/repos/cballou/validate.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cballou/validate.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cballou/validate.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/cballou/validate.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cballou/validate.js/statuses/{sha}","languages_url":"https://api.github.com/repos/cballou/validate.js/languages","stargazers_url":"https://api.github.com/repos/cballou/validate.js/stargazers","contributors_url":"https://api.github.com/repos/cballou/validate.js/contributors","subscribers_url":"https://api.github.com/repos/cballou/validate.js/subscribers","subscription_url":"https://api.github.com/repos/cballou/validate.js/subscription","commits_url":"https://api.github.com/repos/cballou/validate.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/cballou/validate.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/cballou/validate.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/cballou/validate.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/cballou/validate.js/contents/{+path}","compare_url":"https://api.github.com/repos/cballou/validate.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cballou/validate.js/merges","archive_url":"https://api.github.com/repos/cballou/validate.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cballou/validate.js/downloads","issues_url":"https://api.github.com/repos/cballou/validate.js/issues{/number}","pulls_url":"https://api.github.com/repos/cballou/validate.js/pulls{/number}","milestones_url":"https://api.github.com/repos/cballou/validate.js/milestones{/number}","notifications_url":"https://api.github.com/repos/cballou/validate.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cballou/validate.js/labels{/name}","releases_url":"https://api.github.com/repos/cballou/validate.js/releases{/id}","created_at":"2014-03-13T16:20:50Z","updated_at":"2014-03-14T21:38:52Z","pushed_at":"2014-03-14T12:08:58Z","git_url":"git://github.com/cballou/validate.js.git","ssh_url":"git@github.com:cballou/validate.js.git","clone_url":"https://github.com/cballou/validate.js.git","svn_url":"https://github.com/cballou/validate.js","homepage":"http://rickharrison.github.io/validate.js","size":225,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"rickharrison:master","ref":"master","sha":"e4830be5da82e6c7c5b80aa5f557cc90d7805db0","user":{"login":"rickharrison","id":22048,"avatar_url":"https://gravatar.com/avatar/b9a0f8a02cb244c882cf523cafaadc7a?d=https%3A%2F%2Fidenticons.github.com%2F2bee829bed9516889344bb4a675d7e38.png&r=x","gravatar_id":"b9a0f8a02cb244c882cf523cafaadc7a","url":"https://api.github.com/users/rickharrison","html_url":"https://github.com/rickharrison","followers_url":"https://api.github.com/users/rickharrison/followers","following_url":"https://api.github.com/users/rickharrison/following{/other_user}","gists_url":"https://api.github.com/users/rickharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/rickharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickharrison/subscriptions","organizations_url":"https://api.github.com/users/rickharrison/orgs","repos_url":"https://api.github.com/users/rickharrison/repos","events_url":"https://api.github.com/users/rickharrison/events{/privacy}","received_events_url":"https://api.github.com/users/rickharrison/received_events","type":"User","site_admin":false},"repo":{"id":2574361,"name":"validate.js","full_name":"rickharrison/validate.js","owner":{"login":"rickharrison","id":22048,"avatar_url":"https://gravatar.com/avatar/b9a0f8a02cb244c882cf523cafaadc7a?d=https%3A%2F%2Fidenticons.github.com%2F2bee829bed9516889344bb4a675d7e38.png&r=x","gravatar_id":"b9a0f8a02cb244c882cf523cafaadc7a","url":"https://api.github.com/users/rickharrison","html_url":"https://github.com/rickharrison","followers_url":"https://api.github.com/users/rickharrison/followers","following_url":"https://api.github.com/users/rickharrison/following{/other_user}","gists_url":"https://api.github.com/users/rickharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/rickharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickharrison/subscriptions","organizations_url":"https://api.github.com/users/rickharrison/orgs","repos_url":"https://api.github.com/users/rickharrison/repos","events_url":"https://api.github.com/users/rickharrison/events{/privacy}","received_events_url":"https://api.github.com/users/rickharrison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickharrison/validate.js","description":"Lightweight JavaScript form validation library inspired by CodeIgniter.","fork":false,"url":"https://api.github.com/repos/rickharrison/validate.js","forks_url":"https://api.github.com/repos/rickharrison/validate.js/forks","keys_url":"https://api.github.com/repos/rickharrison/validate.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickharrison/validate.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickharrison/validate.js/teams","hooks_url":"https://api.github.com/repos/rickharrison/validate.js/hooks","issue_events_url":"https://api.github.com/repos/rickharrison/validate.js/issues/events{/number}","events_url":"https://api.github.com/repos/rickharrison/validate.js/events","assignees_url":"https://api.github.com/repos/rickharrison/validate.js/assignees{/user}","branches_url":"https://api.github.com/repos/rickharrison/validate.js/branches{/branch}","tags_url":"https://api.github.com/repos/rickharrison/validate.js/tags","blobs_url":"https://api.github.com/repos/rickharrison/validate.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickharrison/validate.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickharrison/validate.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickharrison/validate.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickharrison/validate.js/statuses/{sha}","languages_url":"https://api.github.com/repos/rickharrison/validate.js/languages","stargazers_url":"https://api.github.com/repos/rickharrison/validate.js/stargazers","contributors_url":"https://api.github.com/repos/rickharrison/validate.js/contributors","subscribers_url":"https://api.github.com/repos/rickharrison/validate.js/subscribers","subscription_url":"https://api.github.com/repos/rickharrison/validate.js/subscription","commits_url":"https://api.github.com/repos/rickharrison/validate.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickharrison/validate.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickharrison/validate.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickharrison/validate.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/rickharrison/validate.js/contents/{+path}","compare_url":"https://api.github.com/repos/rickharrison/validate.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickharrison/validate.js/merges","archive_url":"https://api.github.com/repos/rickharrison/validate.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickharrison/validate.js/downloads","issues_url":"https://api.github.com/repos/rickharrison/validate.js/issues{/number}","pulls_url":"https://api.github.com/repos/rickharrison/validate.js/pulls{/number}","milestones_url":"https://api.github.com/repos/rickharrison/validate.js/milestones{/number}","notifications_url":"https://api.github.com/repos/rickharrison/validate.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickharrison/validate.js/labels{/name}","releases_url":"https://api.github.com/repos/rickharrison/validate.js/releases{/id}","created_at":"2011-10-14T05:05:04Z","updated_at":"2014-01-14T23:46:01Z","pushed_at":"2013-12-29T21:31:01Z","git_url":"git://github.com/rickharrison/validate.js.git","ssh_url":"git@github.com:rickharrison/validate.js.git","clone_url":"https://github.com/rickharrison/validate.js.git","svn_url":"https://github.com/rickharrison/validate.js","homepage":"http://rickharrison.github.io/validate.js","size":600,"stargazers_count":1110,"watchers_count":1110,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":202,"mirror_url":null,"open_issues_count":1,"forks":202,"open_issues":1,"watchers":1110,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rickharrison/validate.js/pulls/103"},"html":{"href":"https://github.com/rickharrison/validate.js/pull/103"},"issue":{"href":"https://api.github.com/repos/rickharrison/validate.js/issues/103"},"comments":{"href":"https://api.github.com/repos/rickharrison/validate.js/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/rickharrison/validate.js/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/rickharrison/validate.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rickharrison/validate.js/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/rickharrison/validate.js/statuses/c302d901a2cf9f036d08b98eb9bb47e147a6b40f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}