One liners that make the code shorter
Validate specified JSON text (data_text) with specified schema (schema text). Both are converted to JSON objects with simplesjon.loads().
Parameters: |
|
---|---|
Returns: | Same as json_schema_validator.validator.Validator.validate() |
Raises: | Whatever may be raised by simplejson (in particular simplejson.decoder.JSONDecoderError, a subclass of ValueError) |
Raises: | Whatever may be raised by json_schema_validator.validator.Validator.validate(). In particular json_schema_validator.errors.ValidationError and json_schema_validator.errors.SchemaError |