- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for validateStructuralCompleteness (0.63 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/complete.go
limitations under the License. */ package schema import ( "fmt" "k8s.io/apimachinery/pkg/util/validation/field" ) // validateStructuralCompleteness checks that all value validations in s have // a structural counterpart so that every value validation applies to a value // with a known schema:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
}, }, }, }, }, }, error: `items: Required value: because it is defined in allOf[0].items`, }, } for _, tc := range testCases { errs := validateStructuralCompleteness(&tc.schema, nil, tc.options) if len(tc.error) == 0 && len(errs) != 0 { t.Errorf("unexpected errors: %v", errs) } if len(tc.error) != 0 { contains := false for _, err := range errs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go
allErrs := field.ErrorList{} allErrs = append(allErrs, validateStructuralInvariants(s, rootLevel, fldPath, opts)...) allErrs = append(allErrs, validateStructuralCompleteness(s, fldPath, opts)...) // sort error messages. Otherwise, the errors slice will change every time due to // maps in the types and randomized iteration. sort.Slice(allErrs, func(i, j int) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 14.9K bytes - Viewed (0)