def validate_schema(schema):
jsonschema.Draft4Validator.check_schema(schema)<EOL>
Validate that 'schema' is correct.

    This validates against the jsonschema v4 draft.

    :raises jsonschema.SchemaError: if the schema is invalid.