{
  "$id": "/insights/role_data",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "data about this player in each serving and receiving role",
  "properties": {
    "md5_full": {
      "const": "8e0fa0fe3ba260a156994e3c5583f0e4",
      "description": "MD5 of the all aspects of this schema (including non-functional elements like documentation)"
    },
    "md5_functional": {
      "const": "2b7739497e8203053b616ba83726b67b",
      "description": "MD5 of the functional aspects of this schema"
    },
    "receiving": {
      "additionalProperties": false,
      "description": "data while this player's team was receiving",
      "properties": {
        "oneself": {
          "additionalProperties": false,
          "description": "data while this player's team was receiving and this player was the receiver",
          "properties": {
            "kitchen_arrival": {
              "$ref": "/types/count",
              "description": "number of times the player arrived near the kitchen line (for rallies with at least 3 shots)",
              "title": "Count"
            },
            "total": {
              "$ref": "/types/count",
              "description": "total number of rallies counted with player in this role and at least 3 shots",
              "title": "Count"
            }
          },
          "required": [
            "kitchen_arrival",
            "total"
          ],
          "title": "Rally Category Counts",
          "type": "object"
        },
        "partner": {
          "additionalProperties": false,
          "description": "data while this player's team was receiving and this player's partner was the receiver",
          "properties": {
            "kitchen_arrival": {
              "$ref": "/types/count",
              "description": "number of times the player arrived near the kitchen line (for rallies with at least 3 shots)",
              "title": "Count"
            },
            "total": {
              "$ref": "/types/count",
              "description": "total number of rallies counted with player in this role and at least 3 shots",
              "title": "Count"
            }
          },
          "required": [
            "kitchen_arrival",
            "total"
          ],
          "title": "Rally Category Counts",
          "type": "object"
        }
      },
      "required": [
        "partner",
        "oneself"
      ],
      "title": "Rally data when Receiving",
      "type": "object"
    },
    "serving": {
      "additionalProperties": false,
      "description": "data while this player's team was serving",
      "properties": {
        "oneself": {
          "additionalProperties": false,
          "description": "data while this player's team was serving and this player was the server",
          "properties": {
            "kitchen_arrival": {
              "$ref": "/types/count",
              "description": "number of times the player arrived near the kitchen line (for rallies with at least 4 shots)",
              "title": "Count"
            },
            "total": {
              "$ref": "/types/count",
              "description": "total number of rallies counted with player in this role and at least 4 shots",
              "title": "Count"
            }
          },
          "required": [
            "kitchen_arrival",
            "total"
          ],
          "title": "Rally Category Counts",
          "type": "object"
        },
        "partner": {
          "additionalProperties": false,
          "description": "data while this player's team was serving and this player's partner was the server",
          "properties": {
            "kitchen_arrival": {
              "$ref": "/types/count",
              "description": "number of times the player arrived near the kitchen line (for rallies with at least 4 shots)",
              "title": "Count"
            },
            "total": {
              "$ref": "/types/count",
              "description": "total number of rallies counted with player in this role and at least 4 shots",
              "title": "Count"
            }
          },
          "required": [
            "kitchen_arrival",
            "total"
          ],
          "title": "Rally Category Counts",
          "type": "object"
        }
      },
      "required": [
        "partner",
        "oneself"
      ],
      "title": "Rally data when Serving",
      "type": "object"
    }
  },
  "required": [
    "serving",
    "receiving"
  ],
  "title": "Role Data",
  "type": "object"
}