Library needed: pip install jsonschema
Pypi: https://pypi.python.org/pypi/jsonschema
https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft4Validator
jsonschema.validate(instance, schema, cls=None, *args, **kwargs)[source]
Parameters:
- instance – the instance to validate
- schema(dict) – the schema to validate with
- cls – an IValidator class that will be used to validate the instance.
If the cls argument is not provided, two things will happen in accordance with the specification. 1> if the schema has a $schema property containing a known meta-schema then the proper validator will be used. The specification recommends that all schemas co