- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for MaxItems (0.15 sec)
-
tests/test_tuples.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.8K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go
Format: format, }, }, ValueValidation: &schema.ValueValidation{ MaxItems: maxItems, }, } } func TestEstimateMaxLengthJSON(t *testing.T) { type maxLengthTest struct { Name string InputSchema *schema.Structural ExpectedMaxElements int64 } tests := []maxLengthTest{ { Name: "booleanArray",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go
}}} return ts } func arraySchema(arrayType, format string, maxItems *int64) *spec.Schema { return &spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{arrayType}, Format: format, }}}, MaxItems: maxItems, }, } } func maxPtr(max int64) *int64 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 14 17:18:27 UTC 2022 - 13K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/jsonschemaprops.go
return b } // WithMaxItems sets the MaxItems field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MaxItems field is set to the value of the last call. func (b *JSONSchemaPropsApplyConfiguration) WithMaxItems(value int64) *JSONSchemaPropsApplyConfiguration { b.MaxItems = &value return b }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 28 12:38:10 UTC 2023 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/jsonschemaprops.go
return b } // WithMaxItems sets the MaxItems field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MaxItems field is set to the value of the last call. func (b *JSONSchemaPropsApplyConfiguration) WithMaxItems(value int64) *JSONSchemaPropsApplyConfiguration { b.MaxItems = &value return b }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 28 12:38:10 UTC 2023 - 25.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Splitter.java
* * @param maxItems the maximum number of items returned * @return a splitter with the desired configuration * @since 9.0 */ public Splitter limit(int maxItems) { checkArgument(maxItems > 0, "must be greater than zero: %s", maxItems); return new Splitter(strategy, omitEmptyStrings, trimmer, maxItems); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 23.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Splitter.java
* * @param maxItems the maximum number of items returned * @return a splitter with the desired configuration * @since 9.0 */ public Splitter limit(int maxItems) { checkArgument(maxItems > 0, "must be greater than zero: %s", maxItems); return new Splitter(strategy, omitEmptyStrings, trimmer, maxItems); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 24.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go
out.ExclusiveMaximum = in.ExclusiveMaximum out.Minimum = in.Minimum out.ExclusiveMinimum = in.ExclusiveMinimum out.MaxLength = in.MaxLength out.MinLength = in.MinLength out.Pattern = in.Pattern out.MaxItems = in.MaxItems out.MinItems = in.MinItems out.UniqueItems = in.UniqueItems out.MultipleOf = in.MultipleOf out.MaxProperties = in.MaxProperties out.MinProperties = in.MinProperties out.Required = in.Required
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 18:23:28 UTC 2023 - 15K bytes - Viewed (0)