{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15361","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15361/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15361/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15361/events","html_url":"https://github.com/kubernetes/kubernetes/pull/15361","id":110620819,"number":15361,"title":"Validate on unstructured","user":{"login":"linzichang","id":11015666,"avatar_url":"https://avatars.githubusercontent.com/u/11015666?v=3","gravatar_id":"","url":"https://api.github.com/users/linzichang","html_url":"https://github.com/linzichang","followers_url":"https://api.github.com/users/linzichang/followers","following_url":"https://api.github.com/users/linzichang/following{/other_user}","gists_url":"https://api.github.com/users/linzichang/gists{/gist_id}","starred_url":"https://api.github.com/users/linzichang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzichang/subscriptions","organizations_url":"https://api.github.com/users/linzichang/orgs","repos_url":"https://api.github.com/users/linzichang/repos","events_url":"https://api.github.com/users/linzichang/events{/privacy}","received_events_url":"https://api.github.com/users/linzichang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/M","name":"size/M","color":"eebb00"}],"state":"open","locked":false,"assignee":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-10-09T09:26:37Z","updated_at":"2015-10-10T07:05:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/15361","html_url":"https://github.com/kubernetes/kubernetes/pull/15361","diff_url":"https://github.com/kubernetes/kubernetes/pull/15361.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/15361.patch"},"body":"fix #15085 \r\n@deads2k I haven't changed the main `valiteList` function. I want to see the suggests first. Please cc others who may review."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/147047745","html_url":"https://github.com/kubernetes/kubernetes/pull/15361#issuecomment-147047745","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15361","id":147047745,"user":{"login":"linzichang","id":11015666,"avatar_url":"https://avatars.githubusercontent.com/u/11015666?v=3","gravatar_id":"","url":"https://api.github.com/users/linzichang","html_url":"https://github.com/linzichang","followers_url":"https://api.github.com/users/linzichang/followers","following_url":"https://api.github.com/users/linzichang/following{/other_user}","gists_url":"https://api.github.com/users/linzichang/gists{/gist_id}","starred_url":"https://api.github.com/users/linzichang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzichang/subscriptions","organizations_url":"https://api.github.com/users/linzichang/orgs","repos_url":"https://api.github.com/users/linzichang/repos","events_url":"https://api.github.com/users/linzichang/events{/privacy}","received_events_url":"https://api.github.com/users/linzichang/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T07:05:57Z","updated_at":"2015-10-10T07:05:57Z","body":"@deads2k @smarterclayton \r\nSo I'll still do \"request, check, cast, check\" in the list validation. And I add a `MetaDate interface{}` field in runtime.Unstructured. Is that right?\r\n\r\nAnd what about the suggest \"Make the IsList method private and call it from IsListType\"? My intention is to let the IsList can return an error message. I think we could enhance the `IsListType` to support `runtime.Unstructured` and `runtime.Unknown`. In addition, implement  `IsList` do the same thing with `IsListType` but return an error."}}