Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValidationService

Hierarchy

  • ValidationService

Index

Constructors

constructor

  • Parameters

    Returns ValidationService

Methods

ValidateParam

  • Parameters

    Returns any

validateArray

  • Parameters

    Returns undefined | any[]

validateBool

  • Parameters

    Returns any

validateBuffer

  • validateBuffer(name: string, value: string): Buffer
  • Parameters

    • name: string
    • value: string

    Returns Buffer

validateDate

  • validateDate(name: string, value: any, fieldErrors: FieldErrors, validators?: DateValidator, parent?: string): undefined | Date
  • Parameters

    Returns undefined | Date

validateDateTime

  • Parameters

    Returns undefined | Date

validateEnum

  • validateEnum(name: string, value: unknown, fieldErrors: FieldErrors, members?: (null | string | number | boolean)[], parent?: string): unknown
  • Parameters

    • name: string
    • value: unknown
    • fieldErrors: FieldErrors
    • Optional members: (null | string | number | boolean)[]
    • Optional parent: string

    Returns unknown

validateFloat

  • Parameters

    Returns any

validateInt

  • Parameters

    Returns any

validateIntersection

  • Parameters

    Returns any

validateModel

  • Parameters

    Returns any

validateNestedObjectLiteral

  • validateNestedObjectLiteral(name: string, value: any, fieldErrors: FieldErrors, swaggerConfig: AdditionalProps, nestedProperties: undefined | {}, additionalProperties: undefined | boolean | PropertySchema, parent: string): any
  • Parameters

    Returns any

validateString

  • validateString(name: string, value: any, fieldErrors: FieldErrors, validators?: StringValidator, parent?: string): undefined | string
  • Parameters

    Returns undefined | string

validateUnion

  • Parameters

    Returns any

Generated using TypeDoc