Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToYAMLPathString (0.72 sec)

  1. operator/pkg/util/path.go

    func ToYAMLPath(path string) Path {
    	p := PathFromString(path)
    	for i := range p {
    		p[i] = firstCharToLowerCase(p[i])
    	}
    	return p
    }
    
    // ToYAMLPathString converts a path string such that the first letter of each path element is lower case.
    func ToYAMLPathString(path string) string {
    	return ToYAMLPath(path).String()
    }
    
    // IsValidPathElement reports whether pe is a valid path element.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. operator/pkg/validate/validate.go

    	if util.IsValueNil(val) || util.IsEmptyString(val) {
    		if checkRequired && requiredValues[pstr] {
    			return util.NewErrs(fmt.Errorf("field %s is required but not set", util.ToYAMLPathString(pstr)))
    		}
    		msg += fmt.Sprintf("validate %s: OK (empty value)", pstr)
    		scope.Debug(msg)
    		return nil
    	}
    
    	vf, ok := getValidationFuncForPath(validations, path)
    	if !ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top