Errors module

Error classes used by this package.

exception json_schema_validator.errors.SchemaError

Exception raised when there is a problem with the schema itself.

exception json_schema_validator.errors.ValidationError(message, new_message=None, object_expr=None, schema_expr=None)

Exception raised on mismatch between the validated object and the schema.

message

Old and verbose message that contains less helpful message and lots of JSON data (deprecated).

new_message

Short and concise message about the problem.

object_expr

A JavaScript expression that evaluates to the object that failed to validate. The expression always starts with a root object called 'object'.

schema_expr

A JavaScript expression that evaluates to the schema that was checked at the time validation failed. The expression always starts with a root object called 'schema'.