{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xavidop.github.io/kojo/schema/schedules.schema.json",
  "$ref": "#/$defs/Schedules",
  "$defs": {
    "Schedule": {
      "properties": {
        "name": {
          "type": "string"
        },
        "cron": {
          "type": "string",
          "description": "Cron is a five-field cron expression, or @daily, @hourly, @weekly."
        },
        "timezone": {
          "type": "string",
          "description": "Timezone is an IANA zone. Default UTC, whatever zone the server runs in."
        },
        "skill": {
          "type": "string",
          "description": "Skill is the skill to run."
        },
        "prompt": {
          "type": "string",
          "description": "Prompt is extra instruction for the run."
        },
        "repos": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Repos are the repositories an org-level schedule runs on. Empty means\nevery enabled repository. Ignored in a repository's own schedules."
        },
        "notify": {
          "type": "string",
          "description": "Notify is the chat channel that gets the result: a channel ID, or\nsurface:channel (mattermost:town-square) when several chat surfaces\nare configured."
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Schedule is one recurring job."
    },
    "Schedules": {
      "properties": {
        "schedules": {
          "items": {
            "$ref": "#/$defs/Schedule"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Schedules is a list of recurring jobs."
    }
  },
  "title": ".factory/schedules.yaml: recurring jobs"
}
