{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/clouway/kcqrs/pulls/28","id":187668455,"html_url":"https://github.com/clouway/kcqrs/pull/28","diff_url":"https://github.com/clouway/kcqrs/pull/28.diff","patch_url":"https://github.com/clouway/kcqrs/pull/28.patch","issue_url":"https://api.github.com/repos/clouway/kcqrs/issues/28","number":28,"state":"open","locked":false,"title":"kcqrs-core: command validation during sending","user":{"login":"mgenov","id":209223,"avatar_url":"https://avatars3.githubusercontent.com/u/209223?v=4","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"body":"Added Command validation in the SimpleMessageBus which is performed before command is send to the specified handler.\r\n\r\nThe added validation is declarative and this is a sample of DDL for such:\r\n```kotlin\r\n val confirmUserValidator = Validation<ConfirmUserCommand> {\r\n\t \"email\" {\r\n\t\t be { email.isValidEmailAddress() } not \"email: in format yourname@yourmail.com\"\r\n\t }\r\n\r\n\t \"amount\" {\r\n\t\t be { amount > 0.0 } not \"amount: greather then zero\"\r\n\t }\r\n}\r\n```\r\n\r\nFixes #6","created_at":"2018-05-13T12:50:54Z","updated_at":"2018-05-13T12:50:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":871118781,"url":"https://api.github.com/repos/clouway/kcqrs/labels/needs%20review","name":"needs review","color":"badd3b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/clouway/kcqrs/pulls/28/commits","review_comments_url":"https://api.github.com/repos/clouway/kcqrs/pulls/28/comments","review_comment_url":"https://api.github.com/repos/clouway/kcqrs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway/kcqrs/issues/28/comments","statuses_url":"https://api.github.com/repos/clouway/kcqrs/statuses/975c60efed9148959931ebbb71d01efdea047a05","head":{"label":"mgenov:validation","ref":"validation","sha":"975c60efed9148959931ebbb71d01efdea047a05","user":{"login":"mgenov","id":209223,"avatar_url":"https://avatars3.githubusercontent.com/u/209223?v=4","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"repo":{"id":125724500,"name":"kcqrs","full_name":"mgenov/kcqrs","owner":{"login":"mgenov","id":209223,"avatar_url":"https://avatars3.githubusercontent.com/u/209223?v=4","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgenov/kcqrs","description":"kcqrs - a cqrs made easy with kotlin","fork":true,"url":"https://api.github.com/repos/mgenov/kcqrs","forks_url":"https://api.github.com/repos/mgenov/kcqrs/forks","keys_url":"https://api.github.com/repos/mgenov/kcqrs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgenov/kcqrs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgenov/kcqrs/teams","hooks_url":"https://api.github.com/repos/mgenov/kcqrs/hooks","issue_events_url":"https://api.github.com/repos/mgenov/kcqrs/issues/events{/number}","events_url":"https://api.github.com/repos/mgenov/kcqrs/events","assignees_url":"https://api.github.com/repos/mgenov/kcqrs/assignees{/user}","branches_url":"https://api.github.com/repos/mgenov/kcqrs/branches{/branch}","tags_url":"https://api.github.com/repos/mgenov/kcqrs/tags","blobs_url":"https://api.github.com/repos/mgenov/kcqrs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgenov/kcqrs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgenov/kcqrs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgenov/kcqrs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgenov/kcqrs/statuses/{sha}","languages_url":"https://api.github.com/repos/mgenov/kcqrs/languages","stargazers_url":"https://api.github.com/repos/mgenov/kcqrs/stargazers","contributors_url":"https://api.github.com/repos/mgenov/kcqrs/contributors","subscribers_url":"https://api.github.com/repos/mgenov/kcqrs/subscribers","subscription_url":"https://api.github.com/repos/mgenov/kcqrs/subscription","commits_url":"https://api.github.com/repos/mgenov/kcqrs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgenov/kcqrs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgenov/kcqrs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgenov/kcqrs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgenov/kcqrs/contents/{+path}","compare_url":"https://api.github.com/repos/mgenov/kcqrs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgenov/kcqrs/merges","archive_url":"https://api.github.com/repos/mgenov/kcqrs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgenov/kcqrs/downloads","issues_url":"https://api.github.com/repos/mgenov/kcqrs/issues{/number}","pulls_url":"https://api.github.com/repos/mgenov/kcqrs/pulls{/number}","milestones_url":"https://api.github.com/repos/mgenov/kcqrs/milestones{/number}","notifications_url":"https://api.github.com/repos/mgenov/kcqrs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgenov/kcqrs/labels{/name}","releases_url":"https://api.github.com/repos/mgenov/kcqrs/releases{/id}","deployments_url":"https://api.github.com/repos/mgenov/kcqrs/deployments","created_at":"2018-03-18T12:50:51Z","updated_at":"2018-03-18T12:50:52Z","pushed_at":"2018-05-13T12:49:30Z","git_url":"git://github.com/mgenov/kcqrs.git","ssh_url":"git@github.com:mgenov/kcqrs.git","clone_url":"https://github.com/mgenov/kcqrs.git","svn_url":"https://github.com/mgenov/kcqrs","homepage":null,"size":249,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway:master","ref":"master","sha":"251ad6b4c9cbc4cfddaa234a6e137fc49afcfd1f","user":{"login":"clouway","id":1746331,"avatar_url":"https://avatars2.githubusercontent.com/u/1746331?v=4","gravatar_id":"","url":"https://api.github.com/users/clouway","html_url":"https://github.com/clouway","followers_url":"https://api.github.com/users/clouway/followers","following_url":"https://api.github.com/users/clouway/following{/other_user}","gists_url":"https://api.github.com/users/clouway/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway/subscriptions","organizations_url":"https://api.github.com/users/clouway/orgs","repos_url":"https://api.github.com/users/clouway/repos","events_url":"https://api.github.com/users/clouway/events{/privacy}","received_events_url":"https://api.github.com/users/clouway/received_events","type":"Organization","site_admin":false},"repo":{"id":108405381,"name":"kcqrs","full_name":"clouway/kcqrs","owner":{"login":"clouway","id":1746331,"avatar_url":"https://avatars2.githubusercontent.com/u/1746331?v=4","gravatar_id":"","url":"https://api.github.com/users/clouway","html_url":"https://github.com/clouway","followers_url":"https://api.github.com/users/clouway/followers","following_url":"https://api.github.com/users/clouway/following{/other_user}","gists_url":"https://api.github.com/users/clouway/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway/subscriptions","organizations_url":"https://api.github.com/users/clouway/orgs","repos_url":"https://api.github.com/users/clouway/repos","events_url":"https://api.github.com/users/clouway/events{/privacy}","received_events_url":"https://api.github.com/users/clouway/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway/kcqrs","description":"kcqrs - a cqrs made easy with kotlin","fork":false,"url":"https://api.github.com/repos/clouway/kcqrs","forks_url":"https://api.github.com/repos/clouway/kcqrs/forks","keys_url":"https://api.github.com/repos/clouway/kcqrs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway/kcqrs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway/kcqrs/teams","hooks_url":"https://api.github.com/repos/clouway/kcqrs/hooks","issue_events_url":"https://api.github.com/repos/clouway/kcqrs/issues/events{/number}","events_url":"https://api.github.com/repos/clouway/kcqrs/events","assignees_url":"https://api.github.com/repos/clouway/kcqrs/assignees{/user}","branches_url":"https://api.github.com/repos/clouway/kcqrs/branches{/branch}","tags_url":"https://api.github.com/repos/clouway/kcqrs/tags","blobs_url":"https://api.github.com/repos/clouway/kcqrs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway/kcqrs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway/kcqrs/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway/kcqrs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway/kcqrs/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway/kcqrs/languages","stargazers_url":"https://api.github.com/repos/clouway/kcqrs/stargazers","contributors_url":"https://api.github.com/repos/clouway/kcqrs/contributors","subscribers_url":"https://api.github.com/repos/clouway/kcqrs/subscribers","subscription_url":"https://api.github.com/repos/clouway/kcqrs/subscription","commits_url":"https://api.github.com/repos/clouway/kcqrs/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway/kcqrs/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway/kcqrs/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway/kcqrs/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway/kcqrs/contents/{+path}","compare_url":"https://api.github.com/repos/clouway/kcqrs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway/kcqrs/merges","archive_url":"https://api.github.com/repos/clouway/kcqrs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway/kcqrs/downloads","issues_url":"https://api.github.com/repos/clouway/kcqrs/issues{/number}","pulls_url":"https://api.github.com/repos/clouway/kcqrs/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway/kcqrs/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway/kcqrs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway/kcqrs/labels{/name}","releases_url":"https://api.github.com/repos/clouway/kcqrs/releases{/id}","deployments_url":"https://api.github.com/repos/clouway/kcqrs/deployments","created_at":"2017-10-26T11:58:28Z","updated_at":"2018-05-11T15:19:08Z","pushed_at":"2018-05-11T15:19:06Z","git_url":"git://github.com/clouway/kcqrs.git","ssh_url":"git@github.com:clouway/kcqrs.git","clone_url":"https://github.com/clouway/kcqrs.git","svn_url":"https://github.com/clouway/kcqrs","homepage":null,"size":247,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":6,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/28"},"html":{"href":"https://github.com/clouway/kcqrs/pull/28"},"issue":{"href":"https://api.github.com/repos/clouway/kcqrs/issues/28"},"comments":{"href":"https://api.github.com/repos/clouway/kcqrs/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/clouway/kcqrs/statuses/975c60efed9148959931ebbb71d01efdea047a05"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":256,"deletions":8,"changed_files":9}}
{"actor":{"display_login":"mgenov"}}