Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Validator

A validator, validates some input object using a well known schema.

Hierarchy

  • Validator

Index

Methods

Methods

validate

  • Validate a given input against the initial schema

    Parameters

    • instance: any

    Returns OutputUnit

Static create

  • Creates a new validator with some initial schema and options.

    When validation is to be reused, it is recommended to create a SchemaRepository instance and use the {@link SchemaRepository#validator}} method. The use of a String key allows avoiding re-parsing and fast lookups.

    Parameters

    Returns Validator

Generated using TypeDoc