code: func (o *DeprecatedOptions) Validate() []error {
  	var errs []error
  
  	if o.UseLegacyPolicyConfig && len(o.PolicyConfigFile) == 0 {
  		errs = append(errs, field.Required(field.NewPath("policyConfigFile"), "required when --use-legacy-policy-config is true"))
  	}
  	return errs
  }
docs: // Validate validates the deprecated scheduler options.