{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15662","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15662/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15662/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15662/events","html_url":"https://github.com/kubernetes/kubernetes/issues/15662","id":111490180,"number":15662,"title":"All fields passed to NewFieldFoo() functions should specify full json paths","user":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/technical-debt","name":"kind/technical-debt","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/CSI","name":"team/CSI","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/16","html_url":"https://github.com/kubernetes/kubernetes/milestones/v1.2-candidate","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/16/labels","id":1278500,"number":16,"title":"v1.2-candidate","description":"Things to consider for next minor release.","creator":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"open_issues":126,"closed_issues":6,"state":"open","created_at":"2015-08-29T03:54:34Z","updated_at":"2015-10-14T22:04:21Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-14T20:49:49Z","updated_at":"2015-10-14T22:04:21Z","closed_at":"2015-10-14T22:04:21Z","body":"How we specify fields to NewFieldRequired, NewFieldInvalid, etc. is very inconsistent.\r\n\r\nIn some places, we specify full paths. For example, `spec.ports[%d].port`.\r\n\r\nIn others, we specify only the field name, such as `name`.\r\n\r\nIn still other places, we specify some not-necessarily-contiguous subset of the path, such as `template.labels`.\r\n\r\nWe should convert all of them to specify full paths, such as `spec.template.metadata.labels`."}}