IEAWindTask37 / windIO

Apache License 2.0
19 stars 11 forks source link

Schema validation in CI #32

Open kenloen opened 4 months ago

kenloen commented 4 months ago

The schema's should be validated as a valid Draft-7 json schema in CI.

Something like this could be used:

import jsonschema
from ruamel.yaml import YAML

with open("../windIO/turbine/IEAontology_schema.yaml", "r") as file:
    wt_schema = YAML(typ="safe").load(file)

jsonschema.Draft7Validator.check_schema(wt_schema)