{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agilehero-io/json-schema/agilehero-io-epic-detail-schema.json",
  "title": "EpicDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agilehero-io-projects-api-openapi.yml#/components/schemas/EpicDetail",
  "allOf": [
    {
      "$ref": "#/$defs/Epic"
    },
    {
      "type": "object",
      "required": [
        "description_markdown"
      ],
      "properties": {
        "description_markdown": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description as Markdown (see \"Rich text\"); null when there is none."
        }
      }
    }
  ],
  "$defs": {
    "Epic": {
      "type": "object",
      "required": [
        "id",
        "number",
        "name",
        "color",
        "description_present",
        "project",
        "assignees",
        "start_date",
        "end_date",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "number": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "description_present": {
          "type": "boolean"
        },
        "project": {
          "$ref": "#/$defs/Reference"
        },
        "assignees": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Reference"
          }
        },
        "start_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "end_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Reference": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}