class_docstr: A schema validator using fastjsonschema.
class_docstr_tok: ["A","schema","validator","using","fastjsonschema","."]
docstr: Iterate over errors in incoming data.
docstr_tok: ["Iterate","over","errors","in","incoming","data","."]
code: def iter_errors(self, data, schema=None):
      """Iterate over errors in incoming data."""
      if schema is not None:
          return super().iter_errors(data, schema)
  
      errors = []
      validate_func = self._validator
      try:
          validate_func(data)
      except _JsonSchemaException as error:
          errors = [ValidationError(str(error), schema_path=error.path)]
  
      return errors
  
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 3 for calling the FastJsonSchemaValidator obj's underlying member method code with example usage: obj.iter_errors(data, schema) and returns: errors, super