MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / check_schema

Function check_schema

aura/info.py:90–105  ·  view source on GitHub ↗

Returns None if jsonschema is not installed indicating it's not possible to verify the schema

()

Source from the content-addressed store, hash-verified

88
89
90def 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
108def gather_aura_information() -> dict:

Callers 1

gather_aura_informationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected