Aller au contenu principal
Version: Next

ValidateService

Index

Constructors

constructor

Methods

publicgetSchema

  • getSchema<T>(ClzType: T): ObjectSchema<any>
  • Type parameters

    • T: new (...args: any[]) => any

publicvalidate

  • validate<T>(ClzType: T, value: any, options?: { errorStatus?: number; locale?: string; validationOptions?: ValidationOptions }): ValidationResult<T>
  • Type parameters

    • T: new (...args: any[]) => any

publicvalidateWithSchema

  • validateWithSchema<T>(schema: AnySchema<T>, value: any, options?: { errorStatus?: number; locale?: string; validationOptions?: ValidationOptions }): ValidationResult<T>
  • Type parameters

    • T