{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.sportops.it/formato/schema/tesseramenti.schema.json",
  "title": "Tesseramenti per stagione",
  "description": "Per ogni atleta e stagione, se è un nuovo tesseramento o un rinnovo.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "atleta_id": {
        "type": [
          "integer",
          "null"
        ],
        "description": "→ atleti.id"
      },
      "stagione": {
        "type": [
          "string",
          "null"
        ],
        "description": "→ stagioni.nome"
      },
      "tipo": {
        "type": [
          "string",
          "null"
        ],
        "description": "NUOVO o RINNOVO."
      }
    },
    "required": [
      "atleta_id",
      "stagione",
      "tipo"
    ],
    "additionalProperties": false
  }
}