class_docstr: A schema validator using fastjsonschema.
class_docstr_tok: ["A","schema","validator","using","fastjsonschema","."]
docstr: Initialize the validator.
docstr_tok: ["Initialize","the","validator","."]
code: def __init__(self, schema):
      """Initialize the validator."""
      super().__init__(schema)
      self._validator = fastjsonschema.compile(schema)
  
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 FastJsonSchemaValidator object from inherited base classes: JsonSchemaValidator with example: obj = FastJsonSchemaValidator(schema)