{"action":"created","comment":{"url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments/79155238","id":79155238,"diff_hunk":"@@ -96,4 +96,45 @@ enum EditAddressField {\n             return nil\n         }\n     }\n+\n+    var formValidators: [FormValidator] {\n+        switch self {\n+        case .Title:\n+            return [.Required]\n+        case .FirstName:\n+            return [.Required,\n+                    .MaxLength(maxLength: 50),\n+                    .Pattern(pattern: \"^[\"+FormValidator.anyCharacterPattern+\"]'?[- \"+FormValidator.anyCharacterPattern+\"ß]+$\")]\n+        case .LastName:\n+            return [.Required,\n+                    .MaxLength(maxLength: 50),\n+                    .Pattern(pattern: \"^[\"+FormValidator.anyCharacterPattern+\"]'?[- \"+FormValidator.anyCharacterPattern+\"ß]+$\")]\n+        case .Street:\n+            return [.Required,\n+                    .MaxLength(maxLength: 50),\n+                    .Pattern(pattern: \"^(?=.*[a-zA-Z])(?=.*[0-9]).*$\")]\n+        case .Additional:\n+            return [.MaxLength(maxLength: 50)]\n+        case .Packstation:\n+            return [.Required,\n+                    .MinLength(minLength: 3),\n+                    .MaxLength(maxLength: 3),\n+                    .Pattern(pattern: \"[0-9]{3,3}$\")]","path":"AtlasUI/AtlasUI/EditAddressType.swift","position":60,"original_position":60,"commit_id":"e499507c71d12dcd71ae67ce8a580d4afc7f756e","original_commit_id":"e499507c71d12dcd71ae67ce8a580d4afc7f756e","user":{"login":"bonkey","id":39100,"avatar_url":"https://avatars.githubusercontent.com/u/39100?v=3","gravatar_id":"","url":"https://api.github.com/users/bonkey","html_url":"https://github.com/bonkey","followers_url":"https://api.github.com/users/bonkey/followers","following_url":"https://api.github.com/users/bonkey/following{/other_user}","gists_url":"https://api.github.com/users/bonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/bonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonkey/subscriptions","organizations_url":"https://api.github.com/users/bonkey/orgs","repos_url":"https://api.github.com/users/bonkey/repos","events_url":"https://api.github.com/users/bonkey/events{/privacy}","received_events_url":"https://api.github.com/users/bonkey/received_events","type":"User","site_admin":false},"body":"Will be it always 3? No.\r\n\r\nThere're countries with different ids.","created_at":"2016-09-16T12:04:19Z","updated_at":"2016-09-16T12:04:19Z","html_url":"https://github.com/zalando-incubator/atlas-ios/pull/257#discussion_r79155238","pull_request_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257","_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments/79155238"},"html":{"href":"https://github.com/zalando-incubator/atlas-ios/pull/257#discussion_r79155238"},"pull_request":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257"}}},"pull_request":{"url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257","id":85431779,"html_url":"https://github.com/zalando-incubator/atlas-ios/pull/257","diff_url":"https://github.com/zalando-incubator/atlas-ios/pull/257.diff","patch_url":"https://github.com/zalando-incubator/atlas-ios/pull/257.patch","issue_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/257","number":257,"state":"open","locked":false,"title":"#205: Add/Edit Address","user":{"login":"hani-ibrahim","id":5626418,"avatar_url":"https://avatars.githubusercontent.com/u/5626418?v=3","gravatar_id":"","url":"https://api.github.com/users/hani-ibrahim","html_url":"https://github.com/hani-ibrahim","followers_url":"https://api.github.com/users/hani-ibrahim/followers","following_url":"https://api.github.com/users/hani-ibrahim/following{/other_user}","gists_url":"https://api.github.com/users/hani-ibrahim/gists{/gist_id}","starred_url":"https://api.github.com/users/hani-ibrahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hani-ibrahim/subscriptions","organizations_url":"https://api.github.com/users/hani-ibrahim/orgs","repos_url":"https://api.github.com/users/hani-ibrahim/repos","events_url":"https://api.github.com/users/hani-ibrahim/events{/privacy}","received_events_url":"https://api.github.com/users/hani-ibrahim/received_events","type":"User","site_admin":false},"body":"finishing #205 ","created_at":"2016-09-15T15:58:23Z","updated_at":"2016-09-16T12:40:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea475fae5e850ad627b9231414a1d2f8fee00f27","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257/commits","review_comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257/comments","review_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/257/comments","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/e499507c71d12dcd71ae67ce8a580d4afc7f756e","head":{"label":"zalando-incubator:issue-205","ref":"issue-205","sha":"e499507c71d12dcd71ae67ce8a580d4afc7f756e","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64761185,"name":"atlas-ios","full_name":"zalando-incubator/atlas-ios","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/atlas-ios","description":"Atlas iOS SDK for Zalando Checkout and Catalog APIs.","fork":false,"url":"https://api.github.com/repos/zalando-incubator/atlas-ios","forks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/forks","keys_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/events","assignees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/merges","archive_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/deployments","created_at":"2016-08-02T13:55:33Z","updated_at":"2016-08-28T18:35:42Z","pushed_at":"2016-09-16T10:39:07Z","git_url":"git://github.com/zalando-incubator/atlas-ios.git","ssh_url":"git@github.com:zalando-incubator/atlas-ios.git","clone_url":"https://github.com/zalando-incubator/atlas-ios.git","svn_url":"https://github.com/zalando-incubator/atlas-ios","homepage":"","size":117466,"stargazers_count":12,"watchers_count":12,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":51,"forks":1,"open_issues":51,"watchers":12,"default_branch":"master"}},"base":{"label":"zalando-incubator:master","ref":"master","sha":"b30221e95ef55f7ff4da5101e19d5fab86cfdb99","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64761185,"name":"atlas-ios","full_name":"zalando-incubator/atlas-ios","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/atlas-ios","description":"Atlas iOS SDK for Zalando Checkout and Catalog APIs.","fork":false,"url":"https://api.github.com/repos/zalando-incubator/atlas-ios","forks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/forks","keys_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/events","assignees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/merges","archive_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/deployments","created_at":"2016-08-02T13:55:33Z","updated_at":"2016-08-28T18:35:42Z","pushed_at":"2016-09-16T10:39:07Z","git_url":"git://github.com/zalando-incubator/atlas-ios.git","ssh_url":"git@github.com:zalando-incubator/atlas-ios.git","clone_url":"https://github.com/zalando-incubator/atlas-ios.git","svn_url":"https://github.com/zalando-incubator/atlas-ios","homepage":"","size":117466,"stargazers_count":12,"watchers_count":12,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":51,"forks":1,"open_issues":51,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257"},"html":{"href":"https://github.com/zalando-incubator/atlas-ios/pull/257"},"issue":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/257"},"comments":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/257/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/257/commits"},"statuses":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/e499507c71d12dcd71ae67ce8a580d4afc7f756e"}}}}
{"actor":{"display_login":"bonkey"}}