{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ScheduleDetail",
  "type": "object",
  "description": "Detailed representation of a schedule",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique schedule identifier"
    },
    "name": {
      "type": "string",
      "description": "Name of the schedule"
    },
    "workflowId": {
      "type": "string",
      "description": "ID of the associated workflow"
    },
    "versionId": {
      "type": "string",
      "description": "Specific workflow version ID"
    },
    "ownerId": {
      "type": "string",
      "description": "ID of the schedule owner"
    },
    "runDateTime": {
      "type": "string",
      "description": "Next scheduled run date and time"
    },
    "comment": {
      "type": "string",
      "description": "Comments about the schedule"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the schedule is active"
    },
    "priority": {
      "type": "string",
      "description": "Execution priority"
    },
    "workerTag": {
      "type": "string",
      "description": "Worker tag for execution routing"
    },
    "status": {
      "type": "string",
      "description": "Current status of the schedule"
    },
    "credentialId": {
      "type": "string",
      "description": "Credential used for execution"
    },
    "creationTime": {
      "type": "string",
      "description": "When the schedule was created"
    },
    "lastRunTime": {
      "type": "string",
      "description": "When the schedule last executed"
    },
    "state": {
      "type": "string",
      "description": "Current state of the schedule"
    },
    "runCount": {
      "type": "integer",
      "description": "Total number of times the schedule has executed"
    },
    "frequency": {
      "type": "string",
      "description": "Human-readable frequency description"
    },
    "lastError": {
      "type": "string",
      "description": "Last error message if any"
    },
    "cpuName": {
      "type": "string",
      "description": "Name of the worker node"
    },
    "lastModifiedId": {
      "type": "string",
      "description": "ID of the user who last modified the schedule"
    },
    "lastModifiedDate": {
      "type": "string",
      "description": "Date of last modification"
    },
    "canEdit": {
      "type": "boolean",
      "description": "Whether the current user can edit this schedule"
    },
    "timeZone": {
      "type": "string",
      "description": "Time zone for the schedule"
    },
    "questions": {
      "type": "array",
      "description": "Analytic app question values"
    }
  }
}