class_docstr: A json schema validator.
class_docstr_tok: ["A","json","schema","validator","."]
docstr: Initialize the validator.
docstr_tok: ["Initialize","the","validator","."]
code: def __init__(self, schema):
      """Initialize the validator."""
      self._schema = schema
      self._default_validator = _JsonSchemaValidator(schema)  # Default
      self._validator = self._default_validator
  
file_path: nbformat/nbformat/json_compat.py
imports: from __future__ import annotations
  import os
  import fastjsonschema
  import jsonschema
  from fastjsonschema import JsonSchemaException
  from jsonschema import Draft4Validator
  from jsonschema.exceptions import ErrorTree, ValidationError
label_desc: Use image node_id 1 to create a new JsonSchemaValidator object  with example: obj = JsonSchemaValidator(schema)