{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sportstatsapi/json-schema/sportstatsapi-dto-ski-event-response-schema.json",
  "title": "dto.SkiEventResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sportstatsapi-alpine-skiing-api-openapi.yml#/components/schemas/dto.SkiEventResponse",
  "properties": {
    "country": {
      "description": "IOC code",
      "type": "string"
    },
    "end_date": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "kind": {
      "enum": [
        "world-cup",
        "olympics"
      ],
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "race_count": {
      "type": "integer"
    },
    "races": {
      "items": {
        "$ref": "#/$defs/dto.SkiRaceResponse"
      },
      "type": "array"
    },
    "season": {
      "type": "string"
    },
    "start_date": {
      "type": "string"
    },
    "status_code": {
      "enum": [
        "scheduled",
        "live",
        "final"
      ],
      "type": "string"
    },
    "venue": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "dto.SkiRaceResponse": {
      "properties": {
        "date": {
          "type": "string"
        },
        "discipline": {
          "type": "string"
        },
        "event_id": {
          "type": "integer"
        },
        "full_results": {
          "type": "boolean"
        },
        "gender": {
          "enum": [
            "men",
            "women",
            "mixed"
          ],
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "results": {
          "items": {
            "$ref": "#/$defs/dto.SkiResultResponse"
          },
          "type": "array"
        },
        "status_code": {
          "enum": [
            "scheduled",
            "final",
            "cancelled",
            "awaiting-results"
          ],
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        },
        "winner": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "dto.SkiResultResponse": {
      "properties": {
        "athlete_id": {
          "type": "integer"
        },
        "behind": {
          "type": "string"
        },
        "bib": {
          "type": "string"
        },
        "is_team": {
          "type": "boolean"
        },
        "members": {
          "items": {
            "$ref": "#/$defs/dto.SkiResultResponse"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "nation": {
          "type": "string"
        },
        "rank": {
          "type": "integer"
        },
        "result": {
          "description": "time, points or score; DNF, DNS, DSQ",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}