{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mzizi-dev/json-schema/mzizi-dev-changelog-entry-schema.json",
  "title": "ChangelogEntry",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mzizi-dev-openapi.yml#/components/schemas/ChangelogEntry",
  "type": "object",
  "required": [
    "version",
    "title",
    "description",
    "changed_by",
    "created_at",
    "released_at"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "line": {
      "type": "string",
      "enum": [
        "public",
        "pre-1.0"
      ],
      "description": "Which version era this release belongs to. `public` is the 1.x line; `pre-1.0` is the internal 4.x iteration that 1.0.0 superseded. Both live in one table, which is why no single sort key orders the changelog correctly."
    },
    "line_rank": {
      "type": "integer",
      "description": "Sort weight for `line` — public outranks pre-1.0."
    },
    "major": {
      "type": [
        "integer",
        "null"
      ]
    },
    "minor": {
      "type": [
        "integer",
        "null"
      ]
    },
    "patch": {
      "type": [
        "integer",
        "null"
      ]
    },
    "release_kind": {
      "type": "string",
      "enum": [
        "initial",
        "major",
        "minor",
        "patch"
      ],
      "description": "Compared to the predecessor within the SAME line — a patch bump in 4.1.x is not a major bump merely because 1.0.0 exists."
    },
    "breaking": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "components_touched": {
      "type": "integer",
      "description": "components_added + modified + deprecated + removed."
    },
    "nodes_affected": {
      "type": "array",
      "description": "Nodes and rungs of the DNA double helix touched by this release. No upper bound: node numbers are labels, not a sequence, and the set is never capped.",
      "items": {
        "type": "integer",
        "minimum": 1
      }
    },
    "components_added": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "components_modified": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "components_deprecated": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "components_removed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tools_added": {
      "type": "array",
      "description": "Mzizi tools — MCP tools, SDK helpers — added in this release.",
      "items": {
        "type": "string"
      }
    },
    "tools_modified": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tools_deprecated": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tools_removed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "linked_issues": {
      "type": "array",
      "description": "GitHub issue / PR numbers referenced by this release.",
      "items": {
        "type": "integer"
      }
    },
    "total_stable": {
      "type": [
        "integer",
        "null"
      ]
    },
    "total_deprecated": {
      "type": [
        "integer",
        "null"
      ]
    },
    "total_alpha": {
      "type": [
        "integer",
        "null"
      ]
    },
    "changed_by": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "released_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}