{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/go-validator/validator/pulls/37","id":48666859,"html_url":"https://github.com/go-validator/validator/pull/37","diff_url":"https://github.com/go-validator/validator/pull/37.diff","patch_url":"https://github.com/go-validator/validator/pull/37.patch","issue_url":"https://api.github.com/repos/go-validator/validator/issues/37","number":37,"state":"open","locked":false,"title":"add support for recursing into arrays of structs","user":{"login":"vincentcr","id":560125,"avatar_url":"https://avatars.githubusercontent.com/u/560125?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentcr","html_url":"https://github.com/vincentcr","followers_url":"https://api.github.com/users/vincentcr/followers","following_url":"https://api.github.com/users/vincentcr/following{/other_user}","gists_url":"https://api.github.com/users/vincentcr/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentcr/subscriptions","organizations_url":"https://api.github.com/users/vincentcr/orgs","repos_url":"https://api.github.com/users/vincentcr/repos","events_url":"https://api.github.com/users/vincentcr/events{/privacy}","received_events_url":"https://api.github.com/users/vincentcr/received_events","type":"User","site_admin":false},"body":"currently the validator will not recurse into arrays of structs. For example, if I have:\r\n\r\n```go\r\ntype X struct {\r\n A       int `validate:\"nonzero\"`\r\n}\r\n\r\ntype Y struct {\r\n B int `validate:\"nonzero\"`\r\n Xs []X\r\n}\r\n```\r\nthe elements of `Xs` will not be validated. This pull request adds support for such a scenario.\r\n","created_at":"2015-10-24T22:30:20Z","updated_at":"2015-10-24T22:30:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/go-validator/validator/pulls/37/commits","review_comments_url":"https://api.github.com/repos/go-validator/validator/pulls/37/comments","review_comment_url":"https://api.github.com/repos/go-validator/validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-validator/validator/issues/37/comments","statuses_url":"https://api.github.com/repos/go-validator/validator/statuses/a1c36882908bc323e4bc2f632236c0b755acea88","head":{"label":"vincentcr:v2","ref":"v2","sha":"a1c36882908bc323e4bc2f632236c0b755acea88","user":{"login":"vincentcr","id":560125,"avatar_url":"https://avatars.githubusercontent.com/u/560125?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentcr","html_url":"https://github.com/vincentcr","followers_url":"https://api.github.com/users/vincentcr/followers","following_url":"https://api.github.com/users/vincentcr/following{/other_user}","gists_url":"https://api.github.com/users/vincentcr/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentcr/subscriptions","organizations_url":"https://api.github.com/users/vincentcr/orgs","repos_url":"https://api.github.com/users/vincentcr/repos","events_url":"https://api.github.com/users/vincentcr/events{/privacy}","received_events_url":"https://api.github.com/users/vincentcr/received_events","type":"User","site_admin":false},"repo":{"id":37996787,"name":"validator","full_name":"vincentcr/validator","owner":{"login":"vincentcr","id":560125,"avatar_url":"https://avatars.githubusercontent.com/u/560125?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentcr","html_url":"https://github.com/vincentcr","followers_url":"https://api.github.com/users/vincentcr/followers","following_url":"https://api.github.com/users/vincentcr/following{/other_user}","gists_url":"https://api.github.com/users/vincentcr/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentcr/subscriptions","organizations_url":"https://api.github.com/users/vincentcr/orgs","repos_url":"https://api.github.com/users/vincentcr/repos","events_url":"https://api.github.com/users/vincentcr/events{/privacy}","received_events_url":"https://api.github.com/users/vincentcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincentcr/validator","description":"Package validator implements struct field validations","fork":true,"url":"https://api.github.com/repos/vincentcr/validator","forks_url":"https://api.github.com/repos/vincentcr/validator/forks","keys_url":"https://api.github.com/repos/vincentcr/validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincentcr/validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincentcr/validator/teams","hooks_url":"https://api.github.com/repos/vincentcr/validator/hooks","issue_events_url":"https://api.github.com/repos/vincentcr/validator/issues/events{/number}","events_url":"https://api.github.com/repos/vincentcr/validator/events","assignees_url":"https://api.github.com/repos/vincentcr/validator/assignees{/user}","branches_url":"https://api.github.com/repos/vincentcr/validator/branches{/branch}","tags_url":"https://api.github.com/repos/vincentcr/validator/tags","blobs_url":"https://api.github.com/repos/vincentcr/validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincentcr/validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincentcr/validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincentcr/validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincentcr/validator/statuses/{sha}","languages_url":"https://api.github.com/repos/vincentcr/validator/languages","stargazers_url":"https://api.github.com/repos/vincentcr/validator/stargazers","contributors_url":"https://api.github.com/repos/vincentcr/validator/contributors","subscribers_url":"https://api.github.com/repos/vincentcr/validator/subscribers","subscription_url":"https://api.github.com/repos/vincentcr/validator/subscription","commits_url":"https://api.github.com/repos/vincentcr/validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincentcr/validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincentcr/validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincentcr/validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincentcr/validator/contents/{+path}","compare_url":"https://api.github.com/repos/vincentcr/validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincentcr/validator/merges","archive_url":"https://api.github.com/repos/vincentcr/validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincentcr/validator/downloads","issues_url":"https://api.github.com/repos/vincentcr/validator/issues{/number}","pulls_url":"https://api.github.com/repos/vincentcr/validator/pulls{/number}","milestones_url":"https://api.github.com/repos/vincentcr/validator/milestones{/number}","notifications_url":"https://api.github.com/repos/vincentcr/validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincentcr/validator/labels{/name}","releases_url":"https://api.github.com/repos/vincentcr/validator/releases{/id}","created_at":"2015-06-24T16:31:59Z","updated_at":"2015-06-24T16:31:59Z","pushed_at":"2015-10-24T22:24:11Z","git_url":"git://github.com/vincentcr/validator.git","ssh_url":"git@github.com:vincentcr/validator.git","clone_url":"https://github.com/vincentcr/validator.git","svn_url":"https://github.com/vincentcr/validator","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"v2"}},"base":{"label":"go-validator:v2","ref":"v2","sha":"8e445b9dc14ab1a1a78cc1f712df991307173ee6","user":{"login":"go-validator","id":7433950,"avatar_url":"https://avatars.githubusercontent.com/u/7433950?v=3","gravatar_id":"","url":"https://api.github.com/users/go-validator","html_url":"https://github.com/go-validator","followers_url":"https://api.github.com/users/go-validator/followers","following_url":"https://api.github.com/users/go-validator/following{/other_user}","gists_url":"https://api.github.com/users/go-validator/gists{/gist_id}","starred_url":"https://api.github.com/users/go-validator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-validator/subscriptions","organizations_url":"https://api.github.com/users/go-validator/orgs","repos_url":"https://api.github.com/users/go-validator/repos","events_url":"https://api.github.com/users/go-validator/events{/privacy}","received_events_url":"https://api.github.com/users/go-validator/received_events","type":"Organization","site_admin":false},"repo":{"id":19276758,"name":"validator","full_name":"go-validator/validator","owner":{"login":"go-validator","id":7433950,"avatar_url":"https://avatars.githubusercontent.com/u/7433950?v=3","gravatar_id":"","url":"https://api.github.com/users/go-validator","html_url":"https://github.com/go-validator","followers_url":"https://api.github.com/users/go-validator/followers","following_url":"https://api.github.com/users/go-validator/following{/other_user}","gists_url":"https://api.github.com/users/go-validator/gists{/gist_id}","starred_url":"https://api.github.com/users/go-validator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-validator/subscriptions","organizations_url":"https://api.github.com/users/go-validator/orgs","repos_url":"https://api.github.com/users/go-validator/repos","events_url":"https://api.github.com/users/go-validator/events{/privacy}","received_events_url":"https://api.github.com/users/go-validator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-validator/validator","description":"Package validator implements struct field validations","fork":false,"url":"https://api.github.com/repos/go-validator/validator","forks_url":"https://api.github.com/repos/go-validator/validator/forks","keys_url":"https://api.github.com/repos/go-validator/validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-validator/validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-validator/validator/teams","hooks_url":"https://api.github.com/repos/go-validator/validator/hooks","issue_events_url":"https://api.github.com/repos/go-validator/validator/issues/events{/number}","events_url":"https://api.github.com/repos/go-validator/validator/events","assignees_url":"https://api.github.com/repos/go-validator/validator/assignees{/user}","branches_url":"https://api.github.com/repos/go-validator/validator/branches{/branch}","tags_url":"https://api.github.com/repos/go-validator/validator/tags","blobs_url":"https://api.github.com/repos/go-validator/validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-validator/validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-validator/validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-validator/validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-validator/validator/statuses/{sha}","languages_url":"https://api.github.com/repos/go-validator/validator/languages","stargazers_url":"https://api.github.com/repos/go-validator/validator/stargazers","contributors_url":"https://api.github.com/repos/go-validator/validator/contributors","subscribers_url":"https://api.github.com/repos/go-validator/validator/subscribers","subscription_url":"https://api.github.com/repos/go-validator/validator/subscription","commits_url":"https://api.github.com/repos/go-validator/validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-validator/validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-validator/validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-validator/validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-validator/validator/contents/{+path}","compare_url":"https://api.github.com/repos/go-validator/validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-validator/validator/merges","archive_url":"https://api.github.com/repos/go-validator/validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-validator/validator/downloads","issues_url":"https://api.github.com/repos/go-validator/validator/issues{/number}","pulls_url":"https://api.github.com/repos/go-validator/validator/pulls{/number}","milestones_url":"https://api.github.com/repos/go-validator/validator/milestones{/number}","notifications_url":"https://api.github.com/repos/go-validator/validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-validator/validator/labels{/name}","releases_url":"https://api.github.com/repos/go-validator/validator/releases{/id}","created_at":"2014-04-29T13:09:24Z","updated_at":"2015-10-24T21:24:41Z","pushed_at":"2015-10-24T22:30:20Z","git_url":"git://github.com/go-validator/validator.git","ssh_url":"git@github.com:go-validator/validator.git","clone_url":"https://github.com/go-validator/validator.git","svn_url":"https://github.com/go-validator/validator","homepage":null,"size":356,"stargazers_count":317,"watchers_count":317,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":18,"forks":36,"open_issues":18,"watchers":317,"default_branch":"v2"}},"_links":{"self":{"href":"https://api.github.com/repos/go-validator/validator/pulls/37"},"html":{"href":"https://github.com/go-validator/validator/pull/37"},"issue":{"href":"https://api.github.com/repos/go-validator/validator/issues/37"},"comments":{"href":"https://api.github.com/repos/go-validator/validator/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/go-validator/validator/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/go-validator/validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-validator/validator/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/go-validator/validator/statuses/a1c36882908bc323e4bc2f632236c0b755acea88"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":44,"deletions":1,"changed_files":2}}