Options
All
  • Public
  • Public/Protected
  • All
Menu

Schema foor multiple options

Hierarchy

Index

Constructors

Properties

schema: AnyOfRawSchema

Methods

  • provideTestError(object: any): Error
  • sanitize(object: any): any
  • test(object: any): boolean
  • Tests the schema against an object

    Parameters

    • object: any

      The object to test

    Returns boolean

    true if it matches the schema, false if it does not match

  • Sets the ID for this schema to be referenced by its children for recursion

    Parameters

    • id: string

      The identifier of the schema node

    Returns AnyOfObjectSchema

    self

Generated using TypeDoc