analysis: publish one schema for every project

This commit is contained in:
Codex committed 2026-11-24 14:16:56 +08:00
1 parent 8bd33a4615
commit 8bfe0c36ee
19 files changed
+93 -500

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ analysis = json.loads(analysis_bytes)
with open(sys.argv[2], encoding="utf-8") as handle:
trace = json.load(handle)
if analysis.get("schema") != "marqdo.analysis" or analysis.get("schema_version") not in (2, 3):
if analysis.get("schema") != "marqdo.analysis" or analysis.get("schema_version") != 3:
raise SystemExit("unsupported analysis")
if trace.get("schema") != "marqdo.trace" or trace.get("schema_version") != 2:
raise SystemExit("unsupported trace")