Package: effect
Module: Schema
Validates that a value has at most the specified length. Works with strings and arrays.
Details
JSON Schema:
This check corresponds to the maxLength constraint for strings or the
maxItems constraint for arrays in JSON Schema.
Arbitrary:
When generating test data with fast-check, this applies a maxLength
constraint to ensure generated strings or arrays have at most the required
length.
Signature
declare const isMaxLength: (maxLength: number, annotations?: Annotations.Filter) => SchemaAST.Filter<{ readonly length: number; }>
Since v4.0.0