We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3afe16c commit 497817aCopy full SHA for 497817a
1 file changed
validator/main.py
@@ -1,7 +1,5 @@
1
-import fnmatch
2
import json
3
import os
4
-import re
5
from pathlib import Path
6
7
import jsonschema
@@ -39,7 +37,7 @@ def main():
39
37
json_file = json.load(vf)
40
38
except json.decoder.JSONDecodeError as e:
41
print('Failed loading JSON file. Check for syntax errors around the mentioned line:')
42
- print(e.msg)
+ print(e)
43
failed = True
44
failed_files.append(f.name)
45
continue
@@ -49,7 +47,7 @@ def main():
49
47
jsonschema.validate(json_file, schema)
50
48
except jsonschema.ValidationError as e:
51
print('Validation failed:')
52
- print(e.message)
53
54
55
0 commit comments