{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Categories: the category tree",
 "description": "Every area and category of the category tree, with stable ids. A product sits in one category.",
 "x-table": "categories",
 "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",
   "description": "Stable id (cat_…)."
  },
  "kind": {
   "type": "string",
   "enum": [
    "area",
    "category"
   ]
  },
  "slug": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "parent_id": {
   "type": [
    "string",
    "null"
   ],
   "description": "The area of a category; null for an area."
  },
  "status": {
   "type": [
    "string",
    "null"
   ],
   "description": "open or planned (a category with no product yet)."
  },
  "definition": {
   "type": [
    "string",
    "null"
   ]
  }
 },
 "required": [
  "schema_version",
  "id",
  "kind",
  "slug",
  "name",
  "parent_id",
  "status",
  "definition"
 ],
 "additionalProperties": false
}
