Constructors
constructor
- new Validator(schema, draft?, shortCircuit?): Validator
Parameters
schema: boolean | Schema
draft: SchemaDraft = "2019-09"
shortCircuit: boolean = true
Methods
addSchema
- addSchema(schema, id?): void
Parameters
schema: Schema
Optional
id: string
Returns void
validate
- validate(instance): ValidationResult
Returns ValidationResult