{
  "$ref": "#/definitions/DtAnalysesWpcaTime",
  "definitions": {
    "DtAnalysesWpcaTime": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string",
            "description": "Identifier of the person (voter_id from votes-table.dt)."
          },
          "period_index": {
            "type": "integer",
            "minimum": 0,
            "description": "Zero-based index of the time period within the full series."
          },
          "period_start": {
            "type": "string",
            "format": "date",
            "description": "ISO 8601 date (YYYY-MM-DD). Inclusive start of the time period."
          },
          "period_end": {
            "type": "string",
            "format": "date",
            "description": "ISO 8601 date (YYYY-MM-DD). Inclusive end of the time period."
          },
          "period_label": {
            "type": "string",
            "description": "Human-readable label for the time period (e.g. '1. pol. 2021', 'Q1 2021')."
          },
          "dims": {
            "type": "array",
            "items": {
              "type": [
                "number",
                "null"
              ]
            },
            "description": "Weighted projection of the person into the global PCA eigenbasis for this period. One element per dimension (same n_dims as global output). Null per element if person was excluded."
          },
          "included": {
            "type": "boolean",
            "description": "Whether this person met the lo_limit_time threshold for this period."
          }
        },
        "required": [
          "person_id",
          "period_index",
          "period_start",
          "period_end",
          "dims",
          "included"
        ],
        "additionalProperties": false
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}