Skip to main content
Module

x/oridune_validator/mod.ts>ArrayValidator

A powerful typescript compatible/zod alternative schema validator.
Latest
class ArrayValidator
Re-export
import { ArrayValidator } from "https://deno.land/x/oridune_validator@v0.2.49/mod.ts";

Constructors

new
ArrayValidator(validator?: Type | (() => Type), options?: IArrayValidatorOptions)

Type Parameters

Type
Input
Output

Properties

protected
optional
MaxLength: number
protected
optional
MinLength: number
protected
Options: IArrayValidatorOptions
protected
optional
Validator: Type | (() => Type)

Methods

protected
_toJSON(_options?: IJSONSchemaOptions)
protected
_toSample(options?: ISampleDataOptions)
length(options: { min?: number; max?: number; } | number)
max(length: number)
min(length: number)