Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ValidateStructural (0.53 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    	// defined by additionalProperties. i.e. additionalProperties in main structural
    	// schema, but properties within an allOf.
    	AllowValidationPropertiesWithAdditionalProperties bool
    }
    
    // ValidateStructural checks that s is a structural schema with the invariants:
    //
    // * structurality: both `ForbiddenGenerics` and `ForbiddenExtensions` only have zero values, with the two exceptions for IntOrString.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    			return cond
    		}
    
    		pth := field.NewPath("spec", "versions").Index(i).Child("schema", "openAPIV3Schema")
    
    		allErrs = append(allErrs, schema.ValidateStructural(pth, s)...)
    	}
    
    	if len(allErrs) == 0 {
    		return nil
    	}
    
    	cond.Status = apiextensionsv1.ConditionTrue
    	cond.Reason = "Violations"
    	cond.Message = allErrs.ToAggregate().Error()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    				var err error
    				schema, err = structuralschema.NewStructural(internalSchema)
    				if err != nil {
    					t.Fatalf("structural schema error: %v", err)
    				}
    				if errs := structuralschema.ValidateStructural(nil, schema); len(errs) > 0 {
    					t.Fatalf("structural schema validation error: %v", errs.ToAggregate())
    				}
    				schema = schema.Unfold()
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    				structuralSchemaInitErrs = append(structuralSchemaInitErrs, field.Invalid(fldPath.Child("openAPIV3Schema"), "", err.Error()))
    			} else if validationErrors := structuralschema.ValidateStructural(fldPath.Child("openAPIV3Schema"), ss); len(validationErrors) > 0 {
    				allErrs = append(allErrs, validationErrors...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    				// skip non-structural schemas unless explicitly asked to produce swagger from them
    				if opts.AllowNonStructural || len(structuralschema.ValidateStructural(nil, ss)) == 0 {
    					schema = ss
    
    					// This adds ValueValidation fields (anyOf, allOf) which may be stripped below if opts.StripValueValidation is true
    					schema = schema.Unfold()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top