Skip to main content
Module

x/enzastdlib/vendor/@cfworker-json-schema.ts>Validator

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
class Validator
import { Validator } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@cfworker-json-schema.ts";

Constructors

new
Validator(
schema: Schema | boolean,
draft?: SchemaDraft,
shortCircuit?: boolean,
)

Properties

private
readonly
draft
private
readonly
lookup
private
readonly
schema
private
readonly
shortCircuit

Methods

addSchema(schema: Schema, id?: string): void
validate(instance: any): import("./types.d.ts").ValidationResult