API Reference
Classes
JsonSchema
Struct Schema.
Initializers
new JsonSchema(schema: Json);
Name | Type | Description |
---|---|---|
|
| No description. |
schema
Required
- Type: Json
Methods
Name | Description |
---|---|
| Retrieve the json schema as a string. |
| 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.
obj
Required
- Type: Json
the Json object to validate.
options
Optional
- Type: JsonValidationOptions