{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.sportops.it/formato/schema/convocazioni.schema.json",
  "title": "Convocazioni",
  "description": "Chi è stato chiamato per ogni partita e cosa ha risposto.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "partita_id": {
        "type": [
          "integer",
          "null"
        ],
        "description": "→ partite.id"
      },
      "atleta_id": {
        "type": [
          "integer",
          "null"
        ],
        "description": "→ atleti.id"
      },
      "convocato": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "È convocato."
      },
      "disponibilita": {
        "type": [
          "string",
          "null"
        ],
        "description": "SI, NO, DA_CONFERMARE.",
        "enum": [
          "SI",
          "NO",
          "DA_CONFERMARE",
          null
        ]
      },
      "numero_maglia": {
        "type": [
          "integer",
          "null"
        ],
        "description": "Numero di maglia."
      },
      "ruolo": {
        "type": [
          "string",
          "null"
        ],
        "description": "Ruolo previsto."
      },
      "note": {
        "type": [
          "string",
          "null"
        ],
        "description": "Note."
      }
    },
    "required": [
      "partita_id",
      "atleta_id",
      "convocato",
      "disponibilita",
      "numero_maglia",
      "ruolo",
      "note"
    ],
    "additionalProperties": false
  }
}