{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snap-render-com/json-schema/snap-render-com-schedule-schema.json",
  "title": "Schedule",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snap-render-com-openapi.json#/components/schemas/Schedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "interval": {
      "type": "string",
      "enum": [
        "hourly",
        "daily",
        "weekly"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "png"
      ]
    },
    "options": {
      "type": "object",
      "description": "Render options, same names as the batch endpoint."
    },
    "changeThreshold": {
      "type": "number"
    },
    "notifyEmail": {
      "type": "boolean"
    },
    "isActive": {
      "type": "boolean"
    },
    "pausedReason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "user",
        "plan",
        "failures",
        "account",
        null
      ]
    },
    "consecutiveFailures": {
      "type": "integer"
    },
    "lastError": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastRunAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "nextRunAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}