validates the instance with the given schema
Source code in niceml/experiments/schemas/schemavalidation.py
| def validate_schema(exp_data: ExperimentData, schema) -> bool:
"""validates the instance with the given schema"""
exp_member_list: List[ExpMember] = get_expmembers_from_class(schema)
is_valid_list = [x.validate(exp_data) for x in exp_member_list]
return all(is_valid_list)
|