| Conditions | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 30 | def validate_json(schema_src, json_file): |
||
| 31 | json_schema = None |
||
| 32 | json_data = None |
||
| 33 | |||
| 34 | with open(schema_src, "r", encoding="utf-8") as schema_file: |
||
| 35 | json_schema = json.load(schema_file) |
||
| 36 | |||
| 37 | json_data = json.load(json_file) |
||
| 38 | json_file.close() |
||
| 39 | |||
| 40 | validate(json_data, json_schema) |
||
| 41 | |||
| 50 |