Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for MaxItems (0.55 sec)

  1. tests/test_tuples.py

                                    "schema": IsDict(
                                        {
                                            "title": "Square",
                                            "maxItems": 2,
                                            "minItems": 2,
                                            "type": "array",
                                            "prefixItems": [
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/LimitedDescription.java

        private final LinkedList<String> content;
        private final int maxItems;
    
        public LimitedDescription(int maxItems) {
            this.maxItems = maxItems;
            this.content = new LinkedList<String>();
        }
    
        public LimitedDescription append(String line) {
            content.add(0, line);
            if (content.size() > maxItems) {
                content.removeLast();
            }
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/cel_validation.go

    		// each occurrence of the object they are fields of
    		return uint64ptr(1)
    	case "array":
    		if schema.MaxItems != nil {
    			maxItems := uint64(zeroIfNegative(*schema.MaxItems))
    			return &maxItems
    		}
    		return unbounded
    	default:
    		return uint64ptr(1)
    	}
    }
    
    func zeroIfNegative(v int64) int64 {
    	if v < 0 {
    		return 0
    	}
    	return v
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/deepcopy.go

    		}
    	}
    
    	if in.MinLength != nil {
    		in, out := &in.MinLength, &out.MinLength
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    	if in.MaxItems != nil {
    		in, out := &in.MaxItems, &out.MaxItems
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    
    	if in.MinItems != nil {
    		in, out := &in.MinItems, &out.MinItems
    		if *in == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    			if itemsType == nil {
    				return nil
    			}
    			var maxItems int64
    			if s.MaxItems() != nil {
    				maxItems = zeroIfNegative(*s.MaxItems())
    			} else {
    				maxItems = estimateMaxArrayItemsFromMinSize(itemsType.MinSerializedSize)
    			}
    			return apiservercel.NewListType(itemsType, maxItems)
    		}
    		return nil
    	case "object":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			ValueValidation: &schema.ValueValidation{
    				MaxItems: maxItems,
    			},
    			ValidationExtensions: schema.ValidationExtensions{
    				XValidations: apiextensions.ValidationRules{
    					{
    						Rule: rule,
    					},
    				},
    			},
    		}
    	}
    }
    
    func genArrayOfArraysWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural {
    	return func(maxItems *int64) *schema.Structural {
    		return &schema.Structural{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1beta1.CustomResourceDefinition.json

            "maximum": 9.5,
            "exclusiveMaximum": true,
            "minimum": 11.5,
            "exclusiveMinimum": true,
            "maxLength": 13,
            "minLength": 14,
            "pattern": "patternValue",
            "maxItems": 16,
            "minItems": 17,
            "uniqueItems": true,
            "multipleOf": 19.5,
            "enum": [
              "enumValue"
            ],
            "maxProperties": 21,
            "minProperties": 22,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/deepcopy.go

    		}
    	}
    
    	if in.MinLength != nil {
    		in, out := &in.MinLength, &out.MinLength
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    	if in.MaxItems != nil {
    		in, out := &in.MaxItems, &out.MaxItems
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    
    	if in.MinItems != nil {
    		in, out := &in.MinItems, &out.MinItems
    		if *in == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go

    		}
    	}
    
    	if in.MinLength != nil {
    		in, out := &in.MinLength, &out.MinLength
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    	if in.MaxItems != nil {
    		in, out := &in.MaxItems, &out.MaxItems
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(int64)
    			**out = **in
    		}
    	}
    
    	if in.MinItems != nil {
    		in, out := &in.MinItems, &out.MinItems
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1beta1.CustomResourceDefinition.yaml

          exclusiveMinimum: true
          externalDocs:
            description: descriptionValue
            url: urlValue
          format: formatValue
          id: idValue
          items:
          - {}
          maxItems: 16
          maxLength: 13
          maxProperties: 21
          maximum: 9.5
          minItems: 17
          minLength: 14
          minProperties: 22
          minimum: 11.5
          multipleOf: 19.5
          nullable: true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top