{
  "openapi": "3.1.0",
  "info": {
    "title": "Hack API — public event",
    "version": "0.1.0",
    "description": "Source-reviewed read-only surface. Closed product code is not licensed by this document.",
    "contact": {
      "name": "Ivan Zorin",
      "email": "creator@localzet.com"
    }
  },
  "servers": [
    {
      "url": "https://api.hack-rnd.ru"
    }
  ],
  "paths": {
    "/api/v1/public/event": {
      "get": {
        "operationId": "getPublicEvent",
        "summary": "Current or nearest announced event",
        "description": "Active season first; otherwise earliest future starts_at; data null when absent. Source route throttle:120,1.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public event fields or data:null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "code",
                            "season_name",
                            "event_name",
                            "starts_at",
                            "ends_at",
                            "timezone",
                            "venue_name",
                            "venue_address",
                            "venue_map_url",
                            "arrival_instructions",
                            "support_contact",
                            "participant_registration_open",
                            "volunteer_registration_open"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "season_name": {
                              "type": "string"
                            },
                            "event_name": {
                              "type": "string"
                            },
                            "starts_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time"
                            },
                            "ends_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time"
                            },
                            "timezone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "venue_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "venue_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "venue_map_url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "arrival_instructions": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "support_contact": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "participant_registration_open": {
                              "type": "boolean"
                            },
                            "volunteer_registration_open": {
                              "type": "boolean"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit; the middleware response format depends on the deployment."
          }
        }
      }
    }
  }
}
