import { Validator } from "https://deno.land/x/entropy@1.0.0-beta.17/src/validator/validator.service.ts";
Properties
private
readonly
rules: ValidatorRule[]Methods
private
check(rule: ValidatorRule,
fieldValue: FormDataEntryValue | string | null,
ruleValue: unknown,
fieldName: string,
registerRule(rule: ValidatorRule): void
registerRules(rules: ValidatorRule[]): void
validate(): Promise<Record<string, string[]>>
subject: HttpRequest | Record<string, string | null | undefined>,
rules: Record<string, Partial<ValidatorRulesList> | Record<string, unknown>>,
errorLocale?: string,