effect-io-ai

Package: effect
Module: Schema

Schema.isPropertiesLengthBetween

Validates that an object contains between minimum and maximum properties (inclusive). This includes both string and symbol keys when counting properties.

Details

JSON Schema:

This check corresponds to minProperties and maxProperties constraints in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies node-local minLength and maxLength constraints. Object generators interpret them as the final number of own properties.

Signature

declare const isPropertiesLengthBetween: (minimum: number, maximum: number, annotations?: Annotations.Filter) => SchemaAST.Filter<object>

Source

Since v4.0.0