{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-service-api-routes-core-economics-types-releases-release-with-indicator-1-schema.json",
  "title": "ReleaseWithIndicator",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-economics-api-openapi.yml#/components/schemas/service__api__routes__core__economics__types__releases__ReleaseWithIndicator__1",
  "properties": {
    "indicator": {
      "$ref": "#/$defs/IndicatorSummary"
    },
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "planned_release_date": {
      "type": "string",
      "format": "date-time",
      "title": "Planned Release Date"
    },
    "reference_period_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference Period Date"
    },
    "latest_forecast": {
      "anyOf": [
        {
          "oneOf": [
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__UnknownTypeForecastSummaryWithQuestion__1"
            },
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__RedactedForecastSummaryWithQuestion__1"
            },
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__EventForecastSummaryWithQuestion__1"
            },
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__CategoricalForecastSummaryWithQuestion__1"
            },
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__NumericalForecastSummaryWithQuestion__1"
            },
            {
              "$ref": "#/$defs/service__api__routes__core__types__forecasts__DateForecastSummaryWithQuestion__1"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Latest Forecast"
    }
  },
  "type": "object",
  "required": [
    "indicator",
    "id",
    "planned_release_date",
    "reference_period_date",
    "latest_forecast"
  ],
  "$defs": {
    "CategoricalForecastSummaryCategory": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "probability": {
          "type": "number",
          "title": "Probability"
        }
      },
      "type": "object",
      "required": [
        "label",
        "probability"
      ],
      "title": "CategoricalForecastSummaryCategory"
    },
    "ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        },
        "le": {
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt",
        "le"
      ],
      "title": "ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound"
    },
    "ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        },
        "le": {
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt",
        "le"
      ],
      "title": "ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound"
    },
    "ForecastSummaryIntervalExclusiveLowerBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "type": "string",
          "format": "date-time",
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt"
      ],
      "title": "ForecastSummaryIntervalExclusiveLowerBound"
    },
    "ForecastSummaryIntervalExclusiveLowerBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "type": "number",
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt"
      ],
      "title": "ForecastSummaryIntervalExclusiveLowerBound"
    },
    "ForecastSummaryIntervalExclusiveRange_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        },
        "lt": {
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt",
        "lt"
      ],
      "title": "ForecastSummaryIntervalExclusiveRange"
    },
    "ForecastSummaryIntervalExclusiveRange_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "gt": {
          "title": "Gt",
          "description": "The interval's exclusive lower bound. Greater than"
        },
        "lt": {
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "gt",
        "lt"
      ],
      "title": "ForecastSummaryIntervalExclusiveRange"
    },
    "ForecastSummaryIntervalExclusiveUpperBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "lt": {
          "type": "string",
          "format": "date-time",
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "lt"
      ],
      "title": "ForecastSummaryIntervalExclusiveUpperBound"
    },
    "ForecastSummaryIntervalExclusiveUpperBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "lt": {
          "type": "number",
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "lt"
      ],
      "title": "ForecastSummaryIntervalExclusiveUpperBound"
    },
    "ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        },
        "lt": {
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge",
        "lt"
      ],
      "title": "ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound"
    },
    "ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        },
        "lt": {
          "title": "Lt",
          "description": "The interval's exclusive upper bound. Less than"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge",
        "lt"
      ],
      "title": "ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound"
    },
    "ForecastSummaryIntervalInclusiveLowerBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "type": "string",
          "format": "date-time",
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge"
      ],
      "title": "ForecastSummaryIntervalInclusiveLowerBound"
    },
    "ForecastSummaryIntervalInclusiveLowerBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "type": "number",
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge"
      ],
      "title": "ForecastSummaryIntervalInclusiveLowerBound"
    },
    "ForecastSummaryIntervalInclusiveRange_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        },
        "le": {
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge",
        "le"
      ],
      "title": "ForecastSummaryIntervalInclusiveRange"
    },
    "ForecastSummaryIntervalInclusiveRange_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "ge": {
          "title": "Ge",
          "description": "The interval's inclusive lower bound. Greater than or equal to"
        },
        "le": {
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "ge",
        "le"
      ],
      "title": "ForecastSummaryIntervalInclusiveRange"
    },
    "ForecastSummaryIntervalInclusiveUpperBound_datetime_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "le": {
          "type": "string",
          "format": "date-time",
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "le"
      ],
      "title": "ForecastSummaryIntervalInclusiveUpperBound"
    },
    "ForecastSummaryIntervalInclusiveUpperBound_float_": {
      "properties": {
        "probability": {
          "type": "number",
          "title": "Probability",
          "description": "The probability that the value falls within this interval"
        },
        "le": {
          "type": "number",
          "title": "Le",
          "description": "The interval's incluse upper bound. Less than or equal to"
        }
      },
      "type": "object",
      "required": [
        "probability",
        "le"
      ],
      "title": "ForecastSummaryIntervalInclusiveUpperBound"
    },
    "ForecastSummaryInterval_datetime_": {
      "anyOf": [
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveLowerBound_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveUpperBound_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveLowerBound_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveUpperBound_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveRange_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveRange_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound_datetime_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound_datetime_"
        }
      ]
    },
    "ForecastSummaryInterval_float_": {
      "anyOf": [
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveLowerBound_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveUpperBound_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveLowerBound_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveUpperBound_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveRange_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveRange_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalInclusiveLowerBoundExclusiveUpperBound_float_"
        },
        {
          "$ref": "#/$defs/ForecastSummaryIntervalExclusiveLowerBoundInclusiveUpperBound_float_"
        }
      ]
    },
    "ForecastSummaryIntervals_datetime_": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ForecastSummaryInterval_datetime_"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "A list of intervals that are relevant to the question. These mostly pertain to categorical questions that specify categories over a continous range. For example, a quesiton may ask: \"Will X happen in June, July or later?\" In which case we may provide the probabilites for each of these intervals here."
    },
    "ForecastSummaryIntervals_float_": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ForecastSummaryInterval_float_"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "A list of intervals that are relevant to the question. These mostly pertain to categorical questions that specify categories over a continous range. For example, a quesiton may ask: \"Will X happen in June, July or later?\" In which case we may provide the probabilites for each of these intervals here."
    },
    "ForecastSummaryPercentiles_datetime_": {
      "additionalProperties": {
        "type": "string",
        "format": "date-time"
      },
      "type": "object",
      "description": "Dictionary containing percentiles from the underlying forecast distribution. This endpoint returns the 25th, 50th (median), and 75th percentiles by default. Note that, for date distributions in particular, one or more of these percentiles may not exist, eg: if the likelihood of an event never exceeds 5%. In these cases we provide the maximum percentile\n\nNote that the keys in this dictionary that are prefixed with a \"p\" (\"p25\" and \"p75\") are deprecated, use the numeric keys instead (\"25\" and \"75\")"
    },
    "ForecastSummaryPercentiles_float_": {
      "additionalProperties": {
        "type": "number"
      },
      "type": "object",
      "description": "Dictionary containing percentiles from the underlying forecast distribution. This endpoint returns the 25th, 50th (median), and 75th percentiles by default. Note that, for date distributions in particular, one or more of these percentiles may not exist, eg: if the likelihood of an event never exceeds 5%. In these cases we provide the maximum percentile\n\nNote that the keys in this dictionary that are prefixed with a \"p\" (\"p25\" and \"p75\") are deprecated, use the numeric keys instead (\"25\" and \"75\")"
    },
    "ForecastSummaryThresholds_datetime_": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "number"
          },
          "propertyNames": {
            "format": "date-time"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "Dictionary containing threshold probabilities that are relevant to the question. For example: a \"date\" question may specify a deadline like, \"Will X happen before the end of July?\" In which case we may provide the probability of the event happening before the end of July here"
    },
    "ForecastSummaryThresholds_float_": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "Dictionary containing threshold probabilities that are relevant to the question. For example: a \"date\" question may specify a deadline like, \"Will X happen before the end of July?\" In which case we may provide the probability of the event happening before the end of July here"
    },
    "IndicatorSummary": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "country": {
          "type": "string",
          "title": "Country"
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unit"
        },
        "frequency": {
          "type": "string",
          "title": "Frequency"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "country",
        "unit",
        "frequency"
      ],
      "title": "IndicatorSummary"
    },
    "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"
    },
    "service__api__routes__core__types__forecasts__CategoricalForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Date"
        },
        "type": {
          "type": "string",
          "const": "categorical",
          "title": "Type"
        },
        "categories": {
          "items": {
            "$ref": "#/$defs/CategoricalForecastSummaryCategory"
          },
          "type": "array",
          "title": "Categories"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type",
        "categories"
      ],
      "title": "CategoricalForecastSummaryWithQuestion"
    },
    "service__api__routes__core__types__forecasts__DateForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Date"
        },
        "type": {
          "type": "string",
          "const": "date",
          "title": "Type"
        },
        "median_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median Date",
          "deprecated": true
        },
        "percentiles": {
          "$ref": "#/$defs/ForecastSummaryPercentiles_datetime_"
        },
        "thresholds": {
          "$ref": "#/$defs/ForecastSummaryThresholds_datetime_"
        },
        "intervals": {
          "$ref": "#/$defs/ForecastSummaryIntervals_datetime_"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type",
        "percentiles"
      ],
      "title": "DateForecastSummaryWithQuestion"
    },
    "service__api__routes__core__types__forecasts__EventForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "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"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type",
        "probability",
        "by"
      ],
      "title": "EventForecastSummaryWithQuestion"
    },
    "service__api__routes__core__types__forecasts__NumericalForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Date"
        },
        "type": {
          "type": "string",
          "const": "numerical",
          "title": "Type"
        },
        "median_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median Value",
          "deprecated": true
        },
        "percentiles": {
          "$ref": "#/$defs/ForecastSummaryPercentiles_float_"
        },
        "thresholds": {
          "$ref": "#/$defs/ForecastSummaryThresholds_float_"
        },
        "intervals": {
          "$ref": "#/$defs/ForecastSummaryIntervals_float_"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type",
        "percentiles"
      ],
      "title": "NumericalForecastSummaryWithQuestion"
    },
    "service__api__routes__core__types__forecasts__RedactedForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Date"
        },
        "type": {
          "type": "string",
          "const": "redacted",
          "title": "Type"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type"
      ],
      "title": "RedactedForecastSummaryWithQuestion"
    },
    "service__api__routes__core__types__forecasts__UnknownTypeForecastSummaryWithQuestion__1": {
      "properties": {
        "question": {
          "$ref": "#/$defs/QuestionResponse"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "title": "Date"
        },
        "type": {
          "type": "string",
          "const": "unknown",
          "title": "Type"
        }
      },
      "type": "object",
      "required": [
        "question",
        "id",
        "date",
        "type"
      ],
      "title": "UnknownTypeForecastSummaryWithQuestion"
    }
  }
}