{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tiffany.systems/api/schema/query-result.schema.json",
  "title": "QueryResult",
  "description": "The answer to one bounded, named question, precomputed at build time. There is no query language and no execution surface.",
  "x-schema-version": "1.0.0",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "query", "question", "results"],
  "properties": {
    "schema": {"const": "tiffany.systems/schema/query-result/1.0.0"},
    "query": {"type": "string"},
    "classification": {"type": "string"},
    "notice": {"type": "string"},
    "question": {"type": "string", "description": "The question in words. A client should surface this rather than the query name."},
    "note": {"type": "string", "description": "What the answer does and does not establish."},
    "results": {"description": "An array for list-shaped questions, an object keyed by reference for grouped ones. The shape is fixed per query name."}
  }
}
