{
  "$ref": "#/definitions/DtAnalysesGovityDefinition",
  "definitions": {
    "DtAnalysesGovityDefinition": {
      "type": "object",
      "properties": {
        "since": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "not": {}
                },
                {
                  "type": "string",
                  "format": "date"
                }
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "ISO 8601 date (YYYY-MM-DD). Only vote events on or after this date are included. Null/omitted = no lower bound."
        },
        "until": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "not": {}
                },
                {
                  "type": "string",
                  "format": "date"
                }
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "ISO 8601 date (YYYY-MM-DD). Only vote events on or before this date are included. Null/omitted = no upper bound."
        },
        "present_options": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Vote option values that count as 'present' (used for govity denominator). E.g. ['yes', 'no', 'abstain']."
        },
        "absent_options": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Vote option values that count as 'absent' (not present, zero contribution to direction). E.g. ['absent']."
        },
        "yes_options": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Vote option values that mean 'voted yes' (+1 active, +1 to direction). E.g. ['yes']."
        },
        "no_options": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Vote option values that mean 'voted no' (-1 active, -1 to direction). E.g. ['no', 'no_with_explanation']."
        },
        "government_groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Organization IDs of groups that form the government."
        },
        "government_members": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Person IDs of individual government members not covered by government_groups (e.g. independents)."
        },
        "extras": {
          "type": "object",
          "additionalProperties": {},
          "description": "Additional metadata fields not covered by the core schema."
        }
      },
      "required": [
        "present_options",
        "absent_options",
        "yes_options",
        "no_options",
        "government_groups"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}