{
  "$ref": "#/definitions/DtAnalysesRebelity",
  "definitions": {
    "DtAnalysesRebelity": {
      "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
            }
          },
          "rebelity_total": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of vote events where the member actively voted against their group's majority direction."
          },
          "rebelity_possible": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of vote events where the member's group had a clear majority direction (non-zero), regardless of whether the member was present."
          },
          "rebelity": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "rebelity_total / rebelity_possible. Null if rebelity_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",
          "rebelity_total",
          "rebelity_possible",
          "rebelity"
        ],
        "additionalProperties": false
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}