API Reference
Classes
JsonSchema
Struct Schema.
Initializers
new JsonSchema(schema: Json);
| Name | Type | Description |
|---|---|---|
| | No description. |
schemaRequired
- 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.
objRequired
- Type: Json
the Json object to validate.
optionsOptional
- Type: JsonValidationOptions