Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>ValidationOptions

Decorator-based property validation for classes.
Latest
interface ValidationOptions
Re-export
import { type ValidationOptions } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Options used to pass to validation decorators.

Properties

optional
each: boolean

Specifies if validated value is an array and each of its items must be validated.

optional
message: string | ((validationArguments: ValidationArguments) => string)

Error message to be used on validation fail. Message can be either string or a function that returns a string.

optional
groups: string[]

Validation groups used for this validation.

optional
always: boolean

Indicates if validation must be performed always, no matter of validation groups used.

optional
context: any