{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-paginated-list-forecast-out-schema.json",
  "title": "PaginatedList[ForecastOut]",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-forecasts-api-openapi.yml#/components/schemas/PaginatedList_ForecastOut_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/ForecastOut"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "has_more"
  ],
  "$defs": {
    "ForecastAuthor": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        }
      },
      "type": "object",
      "required": [
        "id",
        "username",
        "display_name"
      ],
      "title": "ForecastAuthor"
    },
    "ForecastOut": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "author": {
          "$ref": "#/$defs/ForecastAuthor"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "body": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "probability": {
          "type": "number",
          "title": "Probability"
        },
        "resolution_date": {
          "type": "string",
          "format": "date",
          "title": "Resolution Date"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "resolved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolved At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "author",
        "title",
        "probability",
        "resolution_date",
        "status",
        "created_at"
      ],
      "title": "ForecastOut"
    }
  }
}