{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agilehero-io/json-schema/agilehero-io-epic-schema.json",
  "title": "Epic",
  "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/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"
    }
  },
  "$defs": {
    "Reference": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}