{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/32702856","id":32702856,"diff_hunk":"@@ -102,11 +109,18 @@ func (s *SwaggerSchema) ValidateObject(obj interface{}, apiVersion, fieldName, t\n \t}\n \tfields, ok := obj.(map[string]interface{})\n \tif !ok {\n-\t\treturn fmt.Errorf(\"expected object of type map[string]interface{} as value of %s field\", fieldName)\n+\t\treturn append(allErrs, fmt.Errorf(\"expected object of type map[string]interface{} as value of %s field\", fieldName))","path":"pkg/api/validation/schema.go","position":38,"original_position":38,"commit_id":"c0c6070b3a105d20168f7b7fe1cccb153c730d0c","original_commit_id":"c0c6070b3a105d20168f7b7fe1cccb153c730d0c","user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"body":"Why not report the actual type with `%T` ?","created_at":"2015-06-18T06:50:10Z","updated_at":"2015-06-18T06:50:10Z","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007#discussion_r32702856","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/32702856"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007#discussion_r32702856"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007","id":37974897,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10007","number":10007,"state":"open","locked":false,"title":"improve kubectl create --validate, aggregate errors and handle requir…","user":{"login":"feihujiang","id":2322270,"avatar_url":"https://avatars.githubusercontent.com/u/2322270?v=3","gravatar_id":"","url":"https://api.github.com/users/feihujiang","html_url":"https://github.com/feihujiang","followers_url":"https://api.github.com/users/feihujiang/followers","following_url":"https://api.github.com/users/feihujiang/following{/other_user}","gists_url":"https://api.github.com/users/feihujiang/gists{/gist_id}","starred_url":"https://api.github.com/users/feihujiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feihujiang/subscriptions","organizations_url":"https://api.github.com/users/feihujiang/orgs","repos_url":"https://api.github.com/users/feihujiang/repos","events_url":"https://api.github.com/users/feihujiang/events{/privacy}","received_events_url":"https://api.github.com/users/feihujiang/received_events","type":"User","site_admin":false},"body":"improve kubectl create --validate, output aggregated errors and handle required fields","created_at":"2015-06-18T06:25:25Z","updated_at":"2015-06-18T06:50:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aeae7c36645b10c76d97b4b6039140bb94add216","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10007/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/c0c6070b3a105d20168f7b7fe1cccb153c730d0c","head":{"label":"feihujiang:improveCreateSchemaValidate","ref":"improveCreateSchemaValidate","sha":"c0c6070b3a105d20168f7b7fe1cccb153c730d0c","user":{"login":"feihujiang","id":2322270,"avatar_url":"https://avatars.githubusercontent.com/u/2322270?v=3","gravatar_id":"","url":"https://api.github.com/users/feihujiang","html_url":"https://github.com/feihujiang","followers_url":"https://api.github.com/users/feihujiang/followers","following_url":"https://api.github.com/users/feihujiang/following{/other_user}","gists_url":"https://api.github.com/users/feihujiang/gists{/gist_id}","starred_url":"https://api.github.com/users/feihujiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feihujiang/subscriptions","organizations_url":"https://api.github.com/users/feihujiang/orgs","repos_url":"https://api.github.com/users/feihujiang/repos","events_url":"https://api.github.com/users/feihujiang/events{/privacy}","received_events_url":"https://api.github.com/users/feihujiang/received_events","type":"User","site_admin":false},"repo":{"id":32961171,"name":"kubernetes","full_name":"feihujiang/kubernetes","owner":{"login":"feihujiang","id":2322270,"avatar_url":"https://avatars.githubusercontent.com/u/2322270?v=3","gravatar_id":"","url":"https://api.github.com/users/feihujiang","html_url":"https://github.com/feihujiang","followers_url":"https://api.github.com/users/feihujiang/followers","following_url":"https://api.github.com/users/feihujiang/following{/other_user}","gists_url":"https://api.github.com/users/feihujiang/gists{/gist_id}","starred_url":"https://api.github.com/users/feihujiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feihujiang/subscriptions","organizations_url":"https://api.github.com/users/feihujiang/orgs","repos_url":"https://api.github.com/users/feihujiang/repos","events_url":"https://api.github.com/users/feihujiang/events{/privacy}","received_events_url":"https://api.github.com/users/feihujiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feihujiang/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/feihujiang/kubernetes","forks_url":"https://api.github.com/repos/feihujiang/kubernetes/forks","keys_url":"https://api.github.com/repos/feihujiang/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feihujiang/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feihujiang/kubernetes/teams","hooks_url":"https://api.github.com/repos/feihujiang/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/feihujiang/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/feihujiang/kubernetes/events","assignees_url":"https://api.github.com/repos/feihujiang/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/feihujiang/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/feihujiang/kubernetes/tags","blobs_url":"https://api.github.com/repos/feihujiang/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feihujiang/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feihujiang/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/feihujiang/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feihujiang/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/feihujiang/kubernetes/languages","stargazers_url":"https://api.github.com/repos/feihujiang/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/feihujiang/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/feihujiang/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/feihujiang/kubernetes/subscription","commits_url":"https://api.github.com/repos/feihujiang/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/feihujiang/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/feihujiang/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/feihujiang/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/feihujiang/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/feihujiang/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feihujiang/kubernetes/merges","archive_url":"https://api.github.com/repos/feihujiang/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feihujiang/kubernetes/downloads","issues_url":"https://api.github.com/repos/feihujiang/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/feihujiang/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/feihujiang/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/feihujiang/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feihujiang/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/feihujiang/kubernetes/releases{/id}","created_at":"2015-03-27T01:23:13Z","updated_at":"2015-06-14T00:12:32Z","pushed_at":"2015-06-18T06:23:42Z","git_url":"git://github.com/feihujiang/kubernetes.git","ssh_url":"git@github.com:feihujiang/kubernetes.git","clone_url":"https://github.com/feihujiang/kubernetes.git","svn_url":"https://github.com/feihujiang/kubernetes","homepage":"http://kubernetes.io","size":75985,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"f660940dceb3fe6ffb1b14ba495a47d91b5cd910","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"GoogleCloudPlatform/kubernetes","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-06-18T06:41:39Z","pushed_at":"2015-06-18T06:38:04Z","git_url":"git://github.com/GoogleCloudPlatform/kubernetes.git","ssh_url":"git@github.com:GoogleCloudPlatform/kubernetes.git","clone_url":"https://github.com/GoogleCloudPlatform/kubernetes.git","svn_url":"https://github.com/GoogleCloudPlatform/kubernetes","homepage":"http://kubernetes.io","size":291870,"stargazers_count":8485,"watchers_count":8485,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1814,"mirror_url":null,"open_issues_count":1413,"forks":1814,"open_issues":1413,"watchers":8485,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/10007"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10007"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10007/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/10007/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/c0c6070b3a105d20168f7b7fe1cccb153c730d0c"}}}}