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>validateSync

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

Performs sync validation of the given object. Note that this method completely ignores async validations. If you want to properly perform validation you need to call validate method instead.

Parameters

object: object
optional
validatorOptions: ValidatorOptions

Validates given object by a given validation schema. Note that this method completely ignores async validations. If you want to properly perform validation you need to call validate method instead.

Parameters

schemaName: string
object: object
optional
validatorOptions: ValidatorOptions