{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-service-api-routes-core-types-forecasts-event-detailed-forecast-with-question-2-schema.json",
  "title": "EventDetailedForecastWithQuestion",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-forecasts-api-openapi.yml#/components/schemas/service__api__routes__core__types__forecasts__EventDetailedForecastWithQuestion__2",
  "properties": {
    "question": {
      "$ref": "#/$defs/QuestionResponse"
    },
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "user_context": {
      "type": "boolean",
      "title": "User Context",
      "description": "Whether the forecast incorporates context previously submitted by a user.",
      "default": false,
      "x-mantic-channel": "beta"
    },
    "date": {
      "type": "string",
      "format": "date-time",
      "title": "Date"
    },
    "type": {
      "type": "string",
      "const": "event",
      "title": "Type"
    },
    "probability": {
      "type": "number",
      "title": "Probability"
    },
    "by": {
      "type": "string",
      "format": "date-time",
      "title": "By"
    },
    "reasoning": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reasoning"
    },
    "cdf": {
      "anyOf": [
        {
          "$ref": "#/$defs/ForecastCdf_datetime_"
        },
        {
          "type": "null"
        }
      ]
    },
    "changes_from_previous": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Changes From Previous",
      "description": "Stored Markdown explanation of what changed since the previous forecast.",
      "x-mantic-channel": "beta"
    }
  },
  "type": "object",
  "required": [
    "question",
    "id",
    "date",
    "type",
    "probability",
    "by",
    "reasoning",
    "cdf"
  ],
  "$defs": {
    "ForecastCdf_datetime_": {
      "additionalProperties": {
        "type": "number"
      },
      "propertyNames": {
        "format": "date-time"
      },
      "type": "object"
    },
    "QuestionResponse": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "Public webapp URL for this question's forecast page.",
          "readOnly": true
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "url"
      ],
      "title": "QuestionResponse"
    }
  }
}