{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schedule": {
      "type": "object",
      "properties": {
        "cadence": {
          "type": "string",
          "enum": [
            "off",
            "weekly",
            "monthly"
          ]
        },
        "pageLimit": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "const": 300
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 10000
                },
                {
                  "type": "number",
                  "const": 100000
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "nextRunAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "updatedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastRunId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastStartedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastError": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "cadence",
        "pageLimit",
        "nextRunAt",
        "updatedAt",
        "lastRunId",
        "lastStartedAt",
        "lastError"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "schedule"
  ],
  "additionalProperties": false
}
