blob: 06327774e7317e83f60272e60717418cbd1ad757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import yamale
## NOTE: this is just a DUMMY. Everything about this can and will change
def qc_metadata(metadatafile):
print("Start metadata validation...")
schema = yamale.make_schema('../example/dummyschema.yaml')
data = yamale.make_data(metadatafile)
# Validate data against the schema. Throws a ValueError if data is invalid.
yamale.validate(schema, data)
print("...complete!")
#qc_metadata("../example/metadata.yaml")
|