[−][src]Crate jsonschema_valid
jsonschema-valid
A simple crate to perform json schema validation.
Supports JSON Schema drafts 4, 6, and 7.
Modules
schemas |
Structs
ValidationError | |
ValidationErrors | Stores the ValidationErrors from a validation run. |
Functions
is_valid | Validates a given JSON instance against a given JSON schema, returning true if valid. This function is more efficient than validate or validate_to_stream, because it stops at the first error. |
validate | Validates a given JSON instance against a given JSON schema, returning the errors, if any. draft may provide the schema draft to use. If not provided, it will be determined automatically from the schema. |
validate_to_stream | Validates a given JSON instance against a given JSON schema, writing the errors to the given stream. draft may provide the schema draft to use. If not provided, it will be determined automatically from the schema. |