Returns None if jsonschema is not installed indicating it's not possible to verify the schema
()
| 88 | |
| 89 | |
| 90 | def check_schema() -> Optional[dict]: |
| 91 | """ |
| 92 | Returns None if jsonschema is not installed indicating it's not possible to verify the schema |
| 93 | """ |
| 94 | if jsonschema is None: |
| 95 | return None |
| 96 | |
| 97 | res = {} |
| 98 | semantic_schema = loads(resources.read_text("aura.data", "semantic_rules_schema.json")) |
| 99 | try: |
| 100 | jsonschema.validate(config.SEMANTIC_RULES, semantic_schema) |
| 101 | res["semantic_rules"] = True |
| 102 | except jsonschema.ValidationError as exc: |
| 103 | res["semantic_rules"] = exc.args[0] |
| 104 | |
| 105 | return res |
| 106 | |
| 107 | |
| 108 | def gather_aura_information() -> dict: |
no outgoing calls
no test coverage detected