MCPcopy Index your code
hub / github.com/python-jsonschema/jsonschema / check_schema

Method check_schema

jsonschema/validators.py:307–316  ·  view source on GitHub ↗
(cls, schema, format_checker=_UNSET)

Source from the content-addressed store, hash-verified

305
306 @classmethod
307 def check_schema(cls, schema, format_checker=_UNSET):
308 Validator = validator_for(cls.META_SCHEMA, default=cls)
309 if format_checker is _UNSET:
310 format_checker = Validator.FORMAT_CHECKER
311 validator = Validator(
312 schema=cls.META_SCHEMA,
313 format_checker=format_checker,
314 )
315 for error in validator.iter_errors(schema):
316 raise exceptions.SchemaError.create_from(error)
317
318 @property
319 def resolver(self):

Callers 1

validateFunction · 0.45

Calls 4

iter_errorsMethod · 0.95
ValidatorClass · 0.90
validator_forFunction · 0.85
create_fromMethod · 0.80

Tested by

no test coverage detected