Skip to content
Snippets Groups Projects
Commit 85fd816c authored by Esteban Prince, Liam (UG - Computer Science)'s avatar Esteban Prince, Liam (UG - Computer Science)
Browse files

Update preprocessor.py

parent d477ce75
No related branches found
No related tags found
No related merge requests found
import json import json
from jsonschema import validate
with open('recipes/vegancupcakes.json', 'r') as f: with open('recipes/vegancupcakes.json', 'r') as f:
recipes = json.load(f) recipes = json.load(f)
...@@ -31,5 +32,7 @@ def addMissingUnits(): ...@@ -31,5 +32,7 @@ def addMissingUnits():
pass pass
# Check that everything in the database conforms to the schema # Check that everything in the database conforms to the schema
def conform(): def validateSchema():
pass # for each json file in database/
\ No newline at end of file validate(schema, file)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment