Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AllOfSchema

Hierarchy

  • AnySchema
    • AllOfSchema

Index

Properties

isJoi

isJoi: boolean

Optional schemaType

schemaType: Types | string

Methods

allow

  • allow(values: any[]): this
  • allow(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

bind

  • bind(): this
  • Returns this

concat

  • concat(schema: this): this
  • Parameters

    • schema: this

    Returns this

default

  • default(value: any, description: undefined | string): this
  • Parameters

    • Optional value: any
    • Optional description: undefined | string

    Returns this

describe

  • describe(): Description
  • Returns Description

description

  • description(desc: string): this
  • Parameters

    • desc: string

    Returns this

disallow

  • disallow(values: any[]): this
  • disallow(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

empty

  • empty(schema: SchemaLike): this
  • Parameters

    • Optional schema: SchemaLike

    Returns this

equal

  • equal(values: any[]): this
  • equal(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

error

  • error(err: Error | ValidationErrorFunction, options: ErrorOptions): this
  • Parameters

    • err: Error | ValidationErrorFunction
    • Optional options: ErrorOptions

    Returns this

example

  • example(value: any): this
  • Parameters

    • value: any

    Returns this

exist

  • exist(): this
  • Returns this

forbidden

  • forbidden(): this
  • Returns this

invalid

  • invalid(values: any[]): this
  • invalid(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

items

  • items(types: Joi.SchemaLike[]): this

label

  • label(name: string): this
  • Parameters

    • name: string

    Returns this

meta

  • meta(meta: object): this
  • Parameters

    • meta: object

    Returns this

not

  • not(values: any[]): this
  • not(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

notes

  • notes(notes: string | string[]): this
  • Parameters

    • notes: string | string[]

    Returns this

only

  • only(values: any[]): this
  • only(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

optional

  • optional(): this
  • Returns this

options

  • options(options: ValidationOptions): this
  • Parameters

    • options: ValidationOptions

    Returns this

raw

  • raw(isRaw: undefined | false | true): this
  • Parameters

    • Optional isRaw: undefined | false | true

    Returns this

required

  • required(): this
  • Returns this

strict

  • strict(isStrict: undefined | false | true): this
  • Parameters

    • Optional isStrict: undefined | false | true

    Returns this

strip

  • strip(): this
  • Returns this

tags

  • tags(notes: string | string[]): this
  • Parameters

    • notes: string | string[]

    Returns this

unit

  • unit(name: string): this
  • Parameters

    • name: string

    Returns this

valid

  • valid(values: any[]): this
  • valid(values: any[]): this
  • Parameters

    • Rest values: any[]

    Returns this

  • Parameters

    • values: any[]

    Returns this

validate

  • validate<T>(value: T, options: ValidationOptions): ValidationResult<T>
  • validate<T, R>(value: T, callback: function): R
  • validate<T, R>(value: T, options: ValidationOptions, callback: function): R
  • Type parameters

    • T

    Parameters

    • value: T
    • Optional options: ValidationOptions

    Returns ValidationResult<T>

  • Type parameters

    • T

    • R

    Parameters

    • value: T
    • callback: function
        • (err: ValidationError, value: T): R
        • Parameters

          • err: ValidationError
          • value: T

          Returns R

    Returns R

  • Type parameters

    • T

    • R

    Parameters

    • value: T
    • options: ValidationOptions
    • callback: function
        • (err: ValidationError, value: T): R
        • Parameters

          • err: ValidationError
          • value: T

          Returns R

    Returns R

when

  • when(ref: string | Reference, options: WhenOptions): AlternativesSchema
  • when(ref: Schema, options: WhenSchemaOptions): AlternativesSchema
  • Parameters

    • ref: string | Reference
    • options: WhenOptions

    Returns AlternativesSchema

  • Parameters

    • ref: Schema
    • options: WhenSchemaOptions

    Returns AlternativesSchema

Generated using TypeDoc