{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Facts: every published number with what it counts",
 "description": "The numbers agentdrives.com/data/facts shows, each with its definition, its value and the products it counts.",
 "x-table": "facts",
 "x-schema-version": "1.1.0",
 "x-license": "CC-BY-4.0",
 "type": "object",
 "properties": {
  "schema_version": {
   "type": "string",
   "const": "1.1.0",
   "description": "The version of this table's schema (semver). Additive changes only within a year; a removal is announced 90 days ahead."
  },
  "id": {
   "type": "string"
  },
  "group": {
   "type": "string"
  },
  "kind": {
   "type": "string",
   "description": "count, share or text."
  },
  "label": {
   "type": "string"
  },
  "define": {
   "type": "string"
  },
  "value": {
   "type": [
    "string",
    "null"
   ],
   "description": "The value as written on the page (a number, a percentage, \"12 of 40\", or a date)."
  },
  "n": {
   "type": [
    "integer",
    "null"
   ]
  },
  "total": {
   "type": [
    "integer",
    "null"
   ]
  },
  "unit": {
   "type": [
    "string",
    "null"
   ]
  },
  "measured": {
   "type": [
    "integer",
    "null"
   ],
   "description": "For a timed median: how many drives were timed."
  },
  "products": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Slugs of the products the fact names, all in the products table."
  }
 },
 "required": [
  "schema_version",
  "id",
  "group",
  "kind",
  "label",
  "define",
  "value",
  "n",
  "total",
  "unit",
  "measured",
  "products"
 ],
 "additionalProperties": false
}
