{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runlater-app/json-schema/runlater-app-run-schema.json",
  "title": "Run",
  "description": "One attempt. Run history includes id, schedule_id, schedule_name, started_at and attempt; run-now returns only the result fields.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runlater-app-openapi.yml#/components/schemas/Run",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "schedule_id": {
      "type": "string"
    },
    "schedule_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "started_at": {
      "type": "string"
    },
    "attempt": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ]
    },
    "duration_ms": {
      "type": [
        "integer",
        "null"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "response": {
      "type": [
        "string",
        "null"
      ],
      "description": "A preview of the response body"
    }
  }
}