{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-apps/refs/heads/main/json-structure/azure-container-apps-job-execution-structure.json",
  "description": "JobExecution schema from Azure Container Apps API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "properties": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "Running",
            "Processing",
            "Stopped",
            "Degraded",
            "Failed",
            "Unknown",
            "Succeeded"
          ]
        },
        "startTime": {
          "type": "datetime",
          "readOnly": true
        },
        "endTime": {
          "type": "datetime",
          "readOnly": true
        },
        "template": {
          "$ref": "#/components/schemas/JobExecutionTemplate"
        }
      }
    }
  },
  "name": "JobExecution"
}