{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kicksma-sh/json-schema/kicksma-sh-series-schema.json",
  "title": "Series",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kicksma-sh-openapi.json#/components/schemas/Series",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "organizer": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "americano",
        "mexicano",
        "king"
      ]
    },
    "rhythm": {
      "type": "object",
      "properties": {
        "every": {
          "type": "string",
          "enum": [
            "week",
            "fortnight",
            "month"
          ]
        },
        "weekday": {
          "type": "integer",
          "description": "0 = Sunday"
        },
        "time": {
          "type": "string",
          "description": "HH:MM in tz"
        },
        "nth": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Monthly: which weekday of the month, 5 = the last"
        },
        "tz": {
          "type": "string"
        }
      }
    },
    "venue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "mapUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "level": {
      "type": "object",
      "properties": {
        "min": {
          "type": [
            "number",
            "null"
          ]
        },
        "max": {
          "type": [
            "number",
            "null"
          ]
        },
        "verifiedOnly": {
          "type": "boolean"
        }
      }
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "men",
        "women",
        "mixed",
        null
      ],
      "description": "Who the match is for; null for anyone. Information only: nobody is checked when they join."
    },
    "ageMin": {
      "type": [
        "integer",
        "null"
      ],
      "enum": [
        35,
        45,
        55,
        null
      ],
      "description": "An age tag, read as 35+, 45+ or 55+; null for any age. Information only."
    },
    "capacity": {
      "type": "integer"
    },
    "cost": {
      "type": [
        "string",
        "null"
      ]
    },
    "active": {
      "type": "boolean"
    },
    "next": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "startsAt": {
          "type": "string",
          "format": "date-time"
        },
        "spotsLeft": {
          "type": "integer"
        }
      }
    }
  }
}