interface Schema.ArrayBuilder
A validation builder for array values.
interface ArrayBuilder<T> extends Builder<T[]>;
Notes
- Returned by Schema.build.array() and provides array-specific validation methods.
Instance members
min()
Validates that the array has at least the specified number of items.max()
Validates that the array has at most the specified number of items.length()
Validates that the array has exactly the specified number of items.nonempty()
Validates that the array is not empty.required()
Adds a required check; returns this builder for further chaining.
Related
class Schema
A class that represents a validation schema for input values, objects, and arrays.
