diff --git a/preprocessor.py b/preprocessor.py index 57c9c8a3525c624b7c3994385c4db9d5c40e1a31..f1a5e73aac1aa7737c4f233a35199d497c21fbc2 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -1,4 +1,5 @@ import json +from jsonschema import validate with open('recipes/vegancupcakes.json', 'r') as f: recipes = json.load(f) @@ -31,5 +32,7 @@ def addMissingUnits(): pass # Check that everything in the database conforms to the schema -def conform(): - pass \ No newline at end of file +def validateSchema(): + # for each json file in database/ + validate(schema, file) + \ No newline at end of file