JSON schemas¶
The checked-in schemas are the machine-readable source of truth. RFCs explain semantics and invariants; schemas define accepted serialized structure.
Diagnostics and operational output¶
Semantic toolchain¶
Validation¶
Schemas use JSON Schema Draft 2020-12. Consumers should reject documents with
an unsupported schema_version rather than trying to infer compatibility.
Example with Python's jsonschema package:
import json
from pathlib import Path
from jsonschema import Draft202012Validator
schema = json.loads(Path("schemas/diagnostics-v1.json").read_text())
document = json.loads(Path("diagnostics.json").read_text())
Draft202012Validator(schema).validate(document)
Qual's own tests validate representative producer output against these schemas and require deterministic serialization for identical inputs.