{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runlater-app/json-schema/runlater-app-schedule-schema.json",
  "title": "Schedule",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runlater-app-openapi.yml#/components/schemas/Schedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "one_time",
        "recurring"
      ]
    },
    "url": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "header_names": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Header values are never returned"
    },
    "body_bytes": {
      "type": "integer"
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "run_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "cron": {
      "type": [
        "string",
        "null"
      ]
    },
    "timezone": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "paused",
        "finished"
      ]
    },
    "next_run_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_run_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "retries": {
      "type": "integer"
    },
    "retry_delay_seconds": {
      "type": "integer"
    },
    "timeout_seconds": {
      "type": "integer"
    },
    "created_at": {
      "type": "string"
    }
  }
}