-
Notifications
You must be signed in to change notification settings - Fork 2
mabel.data.validator.schema
joocer edited this page Jun 4, 2021
·
3 revisions
Tests a dictionary against a schema to test for conformity. Schema definition is similar to - but not the same as - avro schemas
Paramaters: definition: dictionary or string A dictionary, a JSON string of a dictionary or the name of a JSON file containing a schema definition
Test a dictionary against the Schema
-
subject - dictionary
The dictionary to test for conformity -
raise_exception - boolean (optional, default False)
If True, when the subject doesn't conform to the schema a ValidationError is raised
- boolean, True is subject conforms
- ValidationError
This file has been automatically generated, it is not the truth. If in doubt the code will tell you unambiguously what it does.