effect-io-ai

Package: effect
Module: Schema

Schema.isMinProperties

Validates that an object contains at least the specified number of properties. This includes both string and symbol keys when counting properties.

Details

JSON Schema:

This check corresponds to the minProperties constraint in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies a node-local minLength constraint. Object generators interpret it as the final number of own properties.

Signature

declare const isMinProperties: (minProperties: number, annotations?: Annotations.Filter) => SchemaAST.Filter<object>

Source

Since v4.0.0