{
  "$ref": "#/definitions/DtAnalysesGovity",
  "definitions": {
    "DtAnalysesGovity": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "given_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "family_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "classification": {
                  "type": "string"
                },
                "since": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "not": {}
                        },
                        {
                          "type": "string",
                          "format": "date"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "until": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "not": {}
                        },
                        {
                          "type": "string",
                          "format": "date"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          "govity_total": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of vote events where the government had a clear direction, the member was present, and the member did NOT actively vote against the government."
          },
          "govity_possible": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of vote events where the government had a clear direction AND the member was present."
          },
          "govity": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "govity_total / govity_possible. Null if govity_possible is 0."
          },
          "since": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "format": "date"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "until": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "not": {}
                  },
                  {
                    "type": "string",
                    "format": "date"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "extras": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "person_id",
          "govity_total",
          "govity_possible",
          "govity"
        ],
        "additionalProperties": false
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}