Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for subfield (0.19 sec)

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

    							otherField:
    								type: string
    			`),
    			oldObj: mustUnstructured(`
    				subField:
    					apiVersion: v2
    					kind: Baz
    				list:	
    				- name: entry1
    				  apiVersion: v2
    				  kind: Baz
    				- name: entry2
    				  apiVersion: v3
    				  kind: Bar
    			`),
    			newObj: mustUnstructured(`
    				subField:
    					apiVersion: v2
    					kind: Baz
    					otherField: newValue
    				list:	
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation_test.go

    					Properties: map[string]apiextensions.JSONSchemaProps{
    						"value": {
    							Type:     "object",
    							XMapType: strPtr("granular"),
    							Properties: map[string]apiextensions.JSONSchemaProps{
    								"subfield": {
    									Type:      "string",
    									MaxLength: int64ptr(10),
    									XValidations: apiextensions.ValidationRules{
    										{Rule: "self == oldSelf"},
    									},
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 349.4K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation.go

    	}
    	// add more subfields here in the future as they are added to NodeConfigSource
    
    	// exactly one reference subfield must be non-nil
    	if count != 1 {
    		allErrs = append(allErrs, field.Invalid(fldPath, source, "exactly one reference subfield must be non-nil"))
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  4. fastapi/utils.py

        new_field.validate_always = field.validate_always  # type: ignore[attr-defined]
        if field.sub_fields:  # type: ignore[attr-defined]
            new_field.sub_fields = [  # type: ignore[attr-defined]
                create_cloned_field(sub_field, cloned_types=cloned_types)
                for sub_field in field.sub_fields  # type: ignore[attr-defined]
            ]
        if field.key_field:  # type: ignore[attr-defined]
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. fastapi/_compat.py

                field.type_, BaseModel
            ):
                if field.sub_fields is not None:  # type: ignore[attr-defined]
                    for sub_field in field.sub_fields:  # type: ignore[attr-defined]
                        if not is_pv1_scalar_field(sub_field):
                            return False
                return True
            if _annotation_is_sequence(field.type_):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	if len(requestDeclType.Fields) != requestType.NumField() {
    		t.Fatalf("expected %d fields for SubjectAccessReviewSpec, got %d", requestType.NumField(), len(requestDeclType.Fields))
    	}
    	resourceAttributesDeclType := buildResourceAttributesType(f, fs)
    	resourceAttributeType := reflect.TypeOf(v1.ResourceAttributes{})
    	if len(resourceAttributesDeclType.Fields) != resourceAttributeType.NumField() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go

    	userDeclType := buildUserType()
    	userType := reflect.TypeOf(authenticationv1.UserInfo{})
    
    	if len(userDeclType.Fields) != userType.NumField() {
    		t.Errorf("expected %d fields, got %d", userType.NumField(), len(userDeclType.Fields))
    	}
    
    	for i := 0; i < userType.NumField(); i++ {
    		field := userType.Field(i)
    		jsonTagParts := strings.Split(field.Tag.Get("json"), ",")
    		if len(jsonTagParts) < 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		}
    	}
    
    	// check that anything other than name and generateName of ObjectMeta in metadata properties is forbidden
    	tt := reflect.TypeOf(metav1.ObjectMeta{})
    	for i := 0; i < tt.NumField(); i++ {
    		property := tt.Field(i).Name
    		s := &Structural{
    			Generic: Generic{
    				Type: "object",
    			},
    			Properties: map[string]Structural{
    				property: {},
    			},
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. src/internal/buildcfg/exp.go

    	// and overridden at build time.
    	if goexp != "" {
    		// Create a map of known experiment names.
    		names := make(map[string]func(bool))
    		rv := reflect.ValueOf(&flags.Flags).Elem()
    		rt := rv.Type()
    		for i := 0; i < rt.NumField(); i++ {
    			field := rv.Field(i)
    			names[strings.ToLower(rt.Field(i).Name)] = field.SetBool
    		}
    
    		// "regabi" is an alias for all working regabi
    		// subexperiments, and not an experiment itself. Doing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt

        override fun close() = Unit
    
        override fun reset() = unsupported("ObjectOutputStream.reset")
    
        override fun writeFields() = unsupported("ObjectOutputStream.writeFields")
    
        override fun putFields(): PutField = unsupported("ObjectOutputStream.putFields")
    
        override fun writeChars(str: String) = unsupported("ObjectOutputStream.writeChars")
    
        override fun writeBytes(str: String) = unsupported("ObjectOutputStream.writeBytes")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top