Constructor
Gets the raw schema, as object type
Provides the reason test() returned false, if any
The object to test
The provided error
Sanitizes an object.
The object to test
The sanitized object
Tests the schema against an object
The object to test
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
The identifier of the schema node
self
Sets required properties for the object
Properties
self
Add property to the object schema
The name of the property
The schema for the property
self
Sets property filter for dynamic dictionaries
Function to filter the the propeties
Function to determine the schema to use in each case
self
The object should match one of the provided schemas
List of schemas
a new schema instance
Schema to represent an array
Schema for the items of the array
a new schema instance
Schema to represent a boolean
a new schema instance
Schema for object type
a new schema instance
Schema with custom tester and sanitizer
a new schema instance
Schema for dictionary (key => value)
Property filter
Function to determine schema for properties
a new schema instance
Extends schema. For object schemas with pre-defined keys
Parent schema
Extension info
Extended schema
Schema from raw representation
Raw schema representation
a new schema instance
Schema to represent an integer
a new schema instance
Schema to represent the null value
a new schema instance
Schema to represent a real number
a new schema instance
Schema for object type (with a set of properties)
Properties
a new schema instance
Makes schema optional. This means undefined is allowed for test()
The schema
a new schema instance
Parent recursive reference
a new schema instance
Schema for recursive references
a new schema instance
Schema to represent a string
a new schema instance
Schema to represent the undefined value
a new schema instance
Generated using TypeDoc
Object schema