ArraysMetaMetadata union for array-specific validation checks (minLength, maxLength, length, unique).
Source effect/SchemaRepresentation.ts:6036 lines
export type type ArraysMeta =
| {
readonly _tag: "isMinLength"
readonly minLength: number
}
| {
readonly _tag: "isMaxLength"
readonly maxLength: number
}
| {
readonly _tag: "isLengthBetween"
readonly minimum: number
readonly maximum: number
}
| {
readonly _tag: "isUnique"
}
Metadata union for array-specific validation checks (minLength, maxLength,
length, unique).
ArraysMeta = import SchemaSchema.Annotations.interface Annotations.BuiltInMetaDefinitionsRegistry of metadata payloads emitted by built-in schema filters and checks.
Details
Do not augment this interface with custom metadata; extend MetaDefinitions
instead.
BuiltInMetaDefinitions[
| "isMinLength"
| "isMaxLength"
| "isLengthBetween"
| "isUnique"
]Referenced by 1 symbols