{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-get-feed-response-forecast-item-schema.json",
  "title": "GetFeedResponseForecastItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-feed-api-openapi.yml#/components/schemas/GetFeedResponseForecastItem",
  "properties": {
    "type": {
      "type": "string",
      "const": "forecast",
      "title": "Type"
    },
    "question_id": {
      "type": "integer",
      "title": "Question Id"
    },
    "question_title": {
      "type": "string",
      "title": "Question Title"
    },
    "forecast_id": {
      "type": "integer",
      "title": "Forecast Id"
    },
    "forecast_status": {
      "type": "string",
      "title": "Forecast Status"
    },
    "forecast_started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Forecast Started At"
    },
    "forecast_completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Forecast Completed At"
    },
    "forecast_probability": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Forecast Probability"
    },
    "forecast_probability_delta": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Forecast Probability Delta"
    },
    "forecast_display_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Forecast Display Value"
    },
    "forecast_kind": {
      "anyOf": [
        {
          "$ref": "#/$defs/ForecastValueKind"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "type",
    "question_id",
    "question_title",
    "forecast_id",
    "forecast_status",
    "forecast_started_at",
    "forecast_completed_at",
    "forecast_probability",
    "forecast_probability_delta"
  ],
  "$defs": {
    "ForecastValueKind": {
      "type": "string",
      "enum": [
        "event_happens",
        "date",
        "numerical",
        "categorical"
      ],
      "title": "ForecastValueKind",
      "description": "Discriminator for the display shape of forecast values."
    }
  }
}