Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
interface ValidationMetadataArgs
import { type ValidationMetadataArgs } from "https://deno.land/x/deno_class_validator@v1.0.0/src/metadata/ValidationMetadataArgs.ts";

Constructor arguments for ValidationMetadata class.

Properties

type: string

Validation type.

target: Function | string

Object that is used to be validated.

propertyName: string

Property of the object to be validated.

optional
constraintCls: Function

Constraint class that performs validation. Used only for custom validations.

optional
constraints: any[]

Array of constraints of this validation.

optional
validationOptions: ValidationOptions

Validation options.

optional
validationTypeOptions: any

Extra options specific to validation type.