{"action":"created","comment":{"url":"https://api.github.com/repos/Respect/Validation/pulls/comments/28910193","id":28910193,"diff_hunk":"@@ -0,0 +1,24 @@\n+<?php\n+\n+namespace Respect\\Validation\\Exceptions;\n+\n+class NotOptionalException extends ValidationException\n+{\n+    const STANDARD = 0;\n+    const NAMED = 1;\n+    public static $defaultTemplates = array(\n+        self::MODE_DEFAULT => array(\n+            self::STANDARD => 'The value is not optional but required',\n+            self::NAMED => '{{name}} is not optional but required',\n+        ),\n+        self::MODE_NEGATIVE => array(\n+            self::STANDARD => 'The value must be an empty string',\n+            self::NAMED => '{{name}} must be an empty string',","path":"library/Exceptions/NotOptionalException.php","position":16,"original_position":16,"commit_id":"8d15602f92f1b746406907a176bf40bddd6b589e","original_commit_id":"8d15602f92f1b746406907a176bf40bddd6b589e","user":{"login":"qrazi","id":7550540,"avatar_url":"https://avatars.githubusercontent.com/u/7550540?v=3","gravatar_id":"","url":"https://api.github.com/users/qrazi","html_url":"https://github.com/qrazi","followers_url":"https://api.github.com/users/qrazi/followers","following_url":"https://api.github.com/users/qrazi/following{/other_user}","gists_url":"https://api.github.com/users/qrazi/gists{/gist_id}","starred_url":"https://api.github.com/users/qrazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrazi/subscriptions","organizations_url":"https://api.github.com/users/qrazi/orgs","repos_url":"https://api.github.com/users/qrazi/repos","events_url":"https://api.github.com/users/qrazi/events{/privacy}","received_events_url":"https://api.github.com/users/qrazi/received_events","type":"User","site_admin":false},"body":"It's actually based on the NotEmptyException.... :)","created_at":"2015-04-22T20:13:46Z","updated_at":"2015-04-22T20:13:46Z","html_url":"https://github.com/Respect/Validation/pull/336#discussion_r28910193","pull_request_url":"https://api.github.com/repos/Respect/Validation/pulls/336","_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments/28910193"},"html":{"href":"https://github.com/Respect/Validation/pull/336#discussion_r28910193"},"pull_request":{"href":"https://api.github.com/repos/Respect/Validation/pulls/336"}}},"pull_request":{"url":"https://api.github.com/repos/Respect/Validation/pulls/336","id":33892330,"html_url":"https://github.com/Respect/Validation/pull/336","diff_url":"https://github.com/Respect/Validation/pull/336.diff","patch_url":"https://github.com/Respect/Validation/pull/336.patch","issue_url":"https://api.github.com/repos/Respect/Validation/issues/336","number":336,"state":"open","locked":false,"title":"New NotOption-rule to fix unexpected NotEmpty-rule","user":{"login":"qrazi","id":7550540,"avatar_url":"https://avatars.githubusercontent.com/u/7550540?v=3","gravatar_id":"","url":"https://api.github.com/users/qrazi","html_url":"https://github.com/qrazi","followers_url":"https://api.github.com/users/qrazi/followers","following_url":"https://api.github.com/users/qrazi/following{/other_user}","gists_url":"https://api.github.com/users/qrazi/gists{/gist_id}","starred_url":"https://api.github.com/users/qrazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrazi/subscriptions","organizations_url":"https://api.github.com/users/qrazi/orgs","repos_url":"https://api.github.com/users/qrazi/repos","events_url":"https://api.github.com/users/qrazi/events{/privacy}","received_events_url":"https://api.github.com/users/qrazi/received_events","type":"User","site_admin":false},"body":"Added a not-optional-rule that behaves according to the documentation, and updated the documentation.","created_at":"2015-04-22T19:28:10Z","updated_at":"2015-04-22T20:13:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00aad672286905670235b0887db8749a2c5f0a4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Respect/Validation/pulls/336/commits","review_comments_url":"https://api.github.com/repos/Respect/Validation/pulls/336/comments","review_comment_url":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Respect/Validation/issues/336/comments","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/8d15602f92f1b746406907a176bf40bddd6b589e","head":{"label":"qrazi:1.0","ref":"1.0","sha":"8d15602f92f1b746406907a176bf40bddd6b589e","user":{"login":"qrazi","id":7550540,"avatar_url":"https://avatars.githubusercontent.com/u/7550540?v=3","gravatar_id":"","url":"https://api.github.com/users/qrazi","html_url":"https://github.com/qrazi","followers_url":"https://api.github.com/users/qrazi/followers","following_url":"https://api.github.com/users/qrazi/following{/other_user}","gists_url":"https://api.github.com/users/qrazi/gists{/gist_id}","starred_url":"https://api.github.com/users/qrazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrazi/subscriptions","organizations_url":"https://api.github.com/users/qrazi/orgs","repos_url":"https://api.github.com/users/qrazi/repos","events_url":"https://api.github.com/users/qrazi/events{/privacy}","received_events_url":"https://api.github.com/users/qrazi/received_events","type":"User","site_admin":false},"repo":{"id":33723444,"name":"Validation","full_name":"qrazi/Validation","owner":{"login":"qrazi","id":7550540,"avatar_url":"https://avatars.githubusercontent.com/u/7550540?v=3","gravatar_id":"","url":"https://api.github.com/users/qrazi","html_url":"https://github.com/qrazi","followers_url":"https://api.github.com/users/qrazi/followers","following_url":"https://api.github.com/users/qrazi/following{/other_user}","gists_url":"https://api.github.com/users/qrazi/gists{/gist_id}","starred_url":"https://api.github.com/users/qrazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrazi/subscriptions","organizations_url":"https://api.github.com/users/qrazi/orgs","repos_url":"https://api.github.com/users/qrazi/repos","events_url":"https://api.github.com/users/qrazi/events{/privacy}","received_events_url":"https://api.github.com/users/qrazi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qrazi/Validation","description":"The most awesome validation engine ever created for PHP","fork":true,"url":"https://api.github.com/repos/qrazi/Validation","forks_url":"https://api.github.com/repos/qrazi/Validation/forks","keys_url":"https://api.github.com/repos/qrazi/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qrazi/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qrazi/Validation/teams","hooks_url":"https://api.github.com/repos/qrazi/Validation/hooks","issue_events_url":"https://api.github.com/repos/qrazi/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/qrazi/Validation/events","assignees_url":"https://api.github.com/repos/qrazi/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/qrazi/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/qrazi/Validation/tags","blobs_url":"https://api.github.com/repos/qrazi/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qrazi/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qrazi/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/qrazi/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qrazi/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/qrazi/Validation/languages","stargazers_url":"https://api.github.com/repos/qrazi/Validation/stargazers","contributors_url":"https://api.github.com/repos/qrazi/Validation/contributors","subscribers_url":"https://api.github.com/repos/qrazi/Validation/subscribers","subscription_url":"https://api.github.com/repos/qrazi/Validation/subscription","commits_url":"https://api.github.com/repos/qrazi/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/qrazi/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/qrazi/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/qrazi/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/qrazi/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/qrazi/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qrazi/Validation/merges","archive_url":"https://api.github.com/repos/qrazi/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qrazi/Validation/downloads","issues_url":"https://api.github.com/repos/qrazi/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/qrazi/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/qrazi/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/qrazi/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qrazi/Validation/labels{/name}","releases_url":"https://api.github.com/repos/qrazi/Validation/releases{/id}","created_at":"2015-04-10T10:43:09Z","updated_at":"2015-04-10T10:43:10Z","pushed_at":"2015-04-12T20:12:30Z","git_url":"git://github.com/qrazi/Validation.git","ssh_url":"git@github.com:qrazi/Validation.git","clone_url":"https://github.com/qrazi/Validation.git","svn_url":"https://github.com/qrazi/Validation","homepage":"http://respect.li/Validation","size":2674,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"0.8"}},"base":{"label":"Respect:1.0","ref":"1.0","sha":"f5911cd6ed3e264047d96f1edf4ba4c3f7f479c8","user":{"login":"Respect","id":354431,"avatar_url":"https://avatars.githubusercontent.com/u/354431?v=3","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"repo":{"id":931033,"name":"Validation","full_name":"Respect/Validation","owner":{"login":"Respect","id":354431,"avatar_url":"https://avatars.githubusercontent.com/u/354431?v=3","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Respect/Validation","description":"The most awesome validation engine ever created for PHP","fork":false,"url":"https://api.github.com/repos/Respect/Validation","forks_url":"https://api.github.com/repos/Respect/Validation/forks","keys_url":"https://api.github.com/repos/Respect/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Respect/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Respect/Validation/teams","hooks_url":"https://api.github.com/repos/Respect/Validation/hooks","issue_events_url":"https://api.github.com/repos/Respect/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/Respect/Validation/events","assignees_url":"https://api.github.com/repos/Respect/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/Respect/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/Respect/Validation/tags","blobs_url":"https://api.github.com/repos/Respect/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Respect/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Respect/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Respect/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/Respect/Validation/languages","stargazers_url":"https://api.github.com/repos/Respect/Validation/stargazers","contributors_url":"https://api.github.com/repos/Respect/Validation/contributors","subscribers_url":"https://api.github.com/repos/Respect/Validation/subscribers","subscription_url":"https://api.github.com/repos/Respect/Validation/subscription","commits_url":"https://api.github.com/repos/Respect/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Respect/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Respect/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Respect/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Respect/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/Respect/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Respect/Validation/merges","archive_url":"https://api.github.com/repos/Respect/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Respect/Validation/downloads","issues_url":"https://api.github.com/repos/Respect/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/Respect/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/Respect/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/Respect/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Respect/Validation/labels{/name}","releases_url":"https://api.github.com/repos/Respect/Validation/releases{/id}","created_at":"2010-09-22T16:08:05Z","updated_at":"2015-04-22T13:20:22Z","pushed_at":"2015-04-22T19:28:10Z","git_url":"git://github.com/Respect/Validation.git","ssh_url":"git@github.com:Respect/Validation.git","clone_url":"https://github.com/Respect/Validation.git","svn_url":"https://github.com/Respect/Validation","homepage":"http://respect.li/Validation","size":5712,"stargazers_count":2241,"watchers_count":2241,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":317,"mirror_url":null,"open_issues_count":27,"forks":317,"open_issues":27,"watchers":2241,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/336"},"html":{"href":"https://github.com/Respect/Validation/pull/336"},"issue":{"href":"https://api.github.com/repos/Respect/Validation/issues/336"},"comments":{"href":"https://api.github.com/repos/Respect/Validation/issues/336/comments"},"review_comments":{"href":"https://api.github.com/repos/Respect/Validation/pulls/336/comments"},"review_comment":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Respect/Validation/pulls/336/commits"},"statuses":{"href":"https://api.github.com/repos/Respect/Validation/statuses/8d15602f92f1b746406907a176bf40bddd6b589e"}}}}