{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskhold-com/json-schema/taskhold-com-repeat-input-schema.json",
  "title": "RepeatInput",
  "description": "Text such as \"every monday at 9am\", \"weekdays at 8:30\", \"monthly on the 1st\", \"every 3 days\", \"daily at 7am America/Chicago\" (\"off\", \"pause\", \"resume\" on updates), or an object. Times are in the person's time zone unless one is given.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskhold-com-openapi.yml#/components/schemas/RepeatInput",
  "oneOf": [
    {
      "type": "string",
      "maxLength": 200
    },
    {
      "type": "object",
      "required": [
        "every"
      ],
      "properties": {
        "every": {
          "type": "string",
          "enum": [
            "day",
            "weekday",
            "week",
            "month"
          ]
        },
        "on": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "sun",
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat"
            ]
          },
          "description": "every week: which days"
        },
        "day": {
          "type": "integer",
          "minimum": 1,
          "maximum": 31,
          "description": "every month: day of the month; the 31st runs on the last day of shorter months"
        },
        "interval": {
          "type": "integer",
          "minimum": 1,
          "maximum": 365,
          "description": "every day: every N days"
        },
        "at": {
          "type": "string",
          "default": "09:00",
          "description": "09:00 or 5:30pm"
        },
        "timezone": {
          "type": "string",
          "description": "IANA zone; default the person's"
        }
      }
    }
  ]
}