code: func ValidatePolicy(policy auditregistration.Policy, fldPath *field.Path) field.ErrorList {
  	var allErrs field.ErrorList
  	allErrs = append(allErrs, validateStages(policy.Stages, fldPath.Child("stages"))...)
  	allErrs = append(allErrs, validateLevel(policy.Level, fldPath.Child("level"))...)
  	if policy.Level != auditregistration.LevelNone && len(policy.Stages) == 0 {
  		return field.ErrorList{field.Required(fldPath.Child("stages"), "")}
  	}
  	return allErrs
  }
docs: // ValidatePolicy validates the audit policy