Skip to main content
Module

x/oridune_validator/mod.ts>EnumValidator

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

Constructors

new
EnumValidator(choices: Input[] | ((ctx: IValidatorContext) => Input[] | Promise<Input[]>), options?: IEnumValidatorOptions)

Type Parameters

Type
Input
Output

Properties

protected
Choices: Input[] | ((ctx: IValidatorContext) => Input[] | Promise<Input[]>)
protected
Options: IEnumValidatorOptions

Methods

protected
_toJSON(_options?: IJSONSchemaOptions)
protected
_toSample(_options?: ISampleDataOptions)