in src/loading_manifest/common_manifest.py [0:0]
def validate_schema(lm, schema_id, dict_schemas):
if schema_id is None or dict_schemas is None:
return
schema = dict_schemas.get(schema_id)
if schema is None:
logging.warning("Schema is not found for: %s", schema_id)
return
resolver = jsonschema.RefResolver("", schema, store=dict_schemas)
jsonschema.validate(lm, schema, resolver=resolver)