Skip to main content

API Reference

Classes

JsonSchema

Struct Schema.

Initializers

new JsonSchema(schema: Json);
NameTypeDescription
schema
Json
No description.

schemaRequired

Methods

NameDescription
asStr
Retrieve the json schema as a string.
validate
Attempt to validate a json object against the schema.

asStr
asStr(): str

Retrieve the json schema as a string.

validate
validate(obj: Json, options?: JsonValidationOptions): void

Attempt to validate a json object against the schema.

objRequired

the Json object to validate.


optionsOptional