{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-prediction-list-schema.json",
  "title": "PredictionList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-guest-content-api-openapi.yml#/components/schemas/PredictionList",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "has_more",
    "next_cursor"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPrediction"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "PublicPrediction": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "question",
        "options",
        "active",
        "sort_order",
        "total_responses",
        "option_counts",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^prd_.+$"
        },
        "question": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "label"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            }
          }
        },
        "active": {
          "type": "boolean"
        },
        "sort_order": {
          "type": "integer"
        },
        "total_responses": {
          "type": "integer"
        },
        "option_counts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        },
        "created_at": {
          "$ref": "#/$defs/Timestamp"
        }
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}