original_docstring: Validate serialized_obj satisfies JSON schema.
docstring: Validate serialized_obj satisfies JSON schema.
docstring_tokens: Validate serialized_obj satisfies JSON schema .
code: def validate_schema(cls, serialized_obj: Union[str, dict]) -> None:
          """Validate serialized_obj satisfies JSON schema."""
          if cls._json_schema is None:
              raise AirflowException(f'JSON schema of {cls.__name__:s} is not set.')
  
          if isinstance(serialized_obj, dict):
              cls._json_schema.validate(serialized_obj)
          elif isinstance(serialized_obj, str):
              cls._json_schema.validate(json.loads(serialized_obj))
          else:
              raise TypeError("Invalid type: Only dict and str are supported.")
code_tokens: def validate_schema ( cls , serialized_obj : Union [ str , dict ] ) -> None : if cls . _json_schema is None : raise AirflowException ( f'JSON schema of {cls.__name__:s} is not set.' ) if isinstance ( serialized_obj , dict ) : cls . _json_schema . validate ( serialized_obj ) elif isinstance ( serialized_obj , str ) : cls . _json_schema . validate ( json . loads ( serialized_obj ) ) else : raise TypeError ( "Invalid type: Only dict and str are supported." )
short_docstring: Validate serialized_obj satisfies JSON schema.
short_docstring_tokens: Validate serialized_obj satisfies JSON schema .
comment: """Validate serialized_obj satisfies JSON schema."""