Skip to content

Commit e09a8ae

Browse files
committed
Support __schemas__ folder
1 parent 73a05c3 commit e09a8ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ def json_from_file(file_path):
6060

6161
def validate_file(file_path):
6262
print('validating {}'.format(file_path))
63-
schema = json_from_file(file_path + '.schema')
63+
schema = json_from_file("__schemas__/" + file_path)
6464
if schema == None:
65-
return []
65+
schema = json_from_file(file_path + '.schema')
66+
if schema == None:
67+
return []
6668
instance = json_from_file(file_path)
6769

6870
validator = Draft7Validator(schema)

0 commit comments

Comments
 (0)