// Validate validates embedded ObjectMeta and TypeMeta. // It also validate those at the root if isResourceRoot is true. func Validate(pth *field.Path, obj interface{ … } func validate(pth *field.Path, x interface{ … } func validateEmbeddedResource(pth *field.Path, x map[string]interface{ … }