{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "subjectRef": {
      "type": "string",
      "minLength": 1
    },
    "horizon": {
      "anyOf": [{"type":"string","minLength":1},{"type":"null"}]
    },
    "params": {
      "default": {},
      "type": "object",
      "propertyNames": {"type":"string"},
      "additionalProperties": {}
    },
    "schedule": {
      "type": "string",
      "minLength": 1
    },
    "enabled": {
      "default": true,
      "type": "boolean"
    },
    "nextRunAt": {
      "anyOf": [{"type":"string"},{"type":"null"}]
    },
    "evaluationHorizon": {
      "type": "string",
      "minLength": 1
    },
    "forecasterId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "watchlistId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 8,
      "maxLength": 200
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "forecasterId",
    "watchlistId",
    "idempotencyKey",
    "projectId"
  ],
  "additionalProperties": false
}
