{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seggwat-com/json-schema/seggwat-com-changelog-entry-schema.json",
  "title": "ChangelogEntry",
  "description": "One entry on a project's public changelog stream.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/seggwat-com-api-openapi.json#/components/schemas/ChangelogEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "body": {
      "type": "string",
      "description": "Markdown body, rendered (sanitized) on the public board."
    },
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional version badge. Entries sharing a (component, version) pair render as one release block on the public page."
    },
    "category": {
      "allOf": [
        {
          "$ref": "#/$defs/ChangelogCategory"
        }
      ],
      "nullable": true
    },
    "component": {
      "type": [
        "string",
        "null"
      ],
      "description": "Slug of the product component (CLI, Dashboard, React SDK, …) from the project's component registry. Keeps `version` a pure version for multi-asset changelogs."
    },
    "source": {
      "$ref": "#/$defs/ChangelogSource"
    },
    "source_ref": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stable per-source id used for sync dedupe (GitHub release id, idea id). `null` for manual entries."
    },
    "status": {
      "$ref": "#/$defs/ChangelogStatus"
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Display date and public ordering key. Stamped on first publish when not set explicitly."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "project_id",
    "title",
    "body",
    "source",
    "status",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ChangelogCategory": {
      "type": "string",
      "enum": [
        "added",
        "improved",
        "fixed",
        "changed",
        "removed",
        "security"
      ],
      "description": "Optional \"Keep a Changelog\"-style category, used for grouping and the public page's filter pills."
    },
    "ChangelogSource": {
      "type": "string",
      "enum": [
        "manual",
        "github_release",
        "completed_idea"
      ],
      "description": "Where the entry originated. Synced sources are deduplicated by `source_ref` and never overwrite an entry once ingested."
    },
    "ChangelogStatus": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "hidden"
      ],
      "description": "Lifecycle status. Only `published` entries appear on the public board; `hidden` soft-hides without deleting."
    }
  }
}